Mercurial > emacs
changeset 3339:a76734c7dcc5
(Fx_list_fonts): Handle 0 for FRAME_FACES (f) [face_id]->font.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 31 May 1993 04:03:16 +0000 |
parents | 30b946dd8c66 |
children | 908134e8308a |
files | src/xfns.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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; }