aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xfaces.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index 738acbd915c..d99ce172d3c 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -1156,7 +1156,9 @@ DEFUN ("set-face-attribute-internal", Fset_face_attribute_internal,
1156 if (EQ (attr_name, intern ("font"))) 1156 if (EQ (attr_name, intern ("font")))
1157 { 1157 {
1158#if defined (MSDOS) && !defined (HAVE_X_WINDOWS) 1158#if defined (MSDOS) && !defined (HAVE_X_WINDOWS)
1159 face->font = 0; /* The one and only font. */ 1159 /* The one and only font. Must *not* be zero (which
1160 is taken to mean an unused face nowadays). */
1161 face->font = (XFontStruct *)1 ;
1160#else 1162#else
1161 XFontStruct *font = load_font (f, attr_value); 1163 XFontStruct *font = load_font (f, attr_value);
1162 if (face->font != f->output_data.x->font) 1164 if (face->font != f->output_data.x->font)