aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-05-31 04:03:16 +0000
committerRichard M. Stallman1993-05-31 04:03:16 +0000
commitef194aa8e432606064949351a4332bc2e9efe4db (patch)
treedbcbee93a4693bff5b49398a5d7f07d57526a0bd
parent87fbf902fdc0acf4ce52b83843addfae1d4eb402 (diff)
downloademacs-ef194aa8e432606064949351a4332bc2e9efe4db.tar.gz
emacs-ef194aa8e432606064949351a4332bc2e9efe4db.zip
(Fx_list_fonts): Handle 0 for FRAME_FACES (f) [face_id]->font.
-rw-r--r--src/xfns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 1afdb33a5c8..1652b9db117 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -2187,7 +2187,7 @@ fonts), even if they match PATTERN and FACE.")
2187 if (face_id < 0 || face_id > FRAME_N_FACES (f)) 2187 if (face_id < 0 || face_id > FRAME_N_FACES (f))
2188 face_id = 0; 2188 face_id = 0;
2189 size_ref = FRAME_FACES (f) [face_id]->font; 2189 size_ref = FRAME_FACES (f) [face_id]->font;
2190 if (size_ref == (XFontStruct *) (~0)) 2190 if (size_ref == (XFontStruct *) (~0) || size_ref == NULL)
2191 size_ref = f->display.x->font; 2191 size_ref = f->display.x->font;
2192 } 2192 }
2193 2193