Commit ef194aa8 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(Fx_list_fonts): Handle 0 for FRAME_FACES (f) [face_id]->font.

parent 87fbf902
......@@ -2187,7 +2187,7 @@ fonts), even if they match PATTERN and FACE.")
if (face_id < 0 || face_id > FRAME_N_FACES (f))
face_id = 0;
size_ref = FRAME_FACES (f) [face_id]->font;
if (size_ref == (XFontStruct *) (~0))
if (size_ref == (XFontStruct *) (~0) || size_ref == NULL)
size_ref = f->display.x->font;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment