# HG changeset patch # User Richard M. Stallman # Date 738820996 0 # Node ID a76734c7dcc513e448a6b7dffb554feaf882ed05 # Parent 30b946dd8c669b368d413c43511e909bfb6b4da2 (Fx_list_fonts): Handle 0 for FRAME_FACES (f) [face_id]->font. diff -r 30b946dd8c66 -r a76734c7dcc5 src/xfns.c --- a/src/xfns.c Mon May 31 03:39:07 1993 +0000 +++ b/src/xfns.c Mon May 31 04:03:16 1993 +0000 @@ -2187,7 +2187,7 @@ 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; }