changeset 13626:177fbffc7359

(Fset_face_attribute_internal) [MSDOS]: Set font field to 1.
author Richard M. Stallman <rms@gnu.org>
date Wed, 22 Nov 1995 12:13:35 +0000
parents 397f07418271
children 8873aa3451dd
files src/xfaces.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfaces.c	Wed Nov 22 12:09:49 1995 +0000
+++ b/src/xfaces.c	Wed Nov 22 12:13:35 1995 +0000
@@ -1156,7 +1156,9 @@
   if (EQ (attr_name, intern ("font")))
     {
 #if defined (MSDOS) && !defined (HAVE_X_WINDOWS)
-      face->font = 0; /* The one and only font.  */
+      /* The one and only font.  Must *not* be zero (which
+	 is taken to mean an unused face nowadays).  */
+      face->font = (XFontStruct *)1 ;
 #else
       XFontStruct *font = load_font (f, attr_value);
       if (face->font != f->output_data.x->font)