changeset 72170:c594a1694d31

(lookup_named_face, Fdisplay_supports_face_attributes_p): Add conditional aborts for clarity.
author Richard M. Stallman <rms@gnu.org>
date Sat, 29 Jul 2006 01:57:38 +0000
parents 06d60c338318
children e75e70410a5a
files src/xfaces.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfaces.c	Sat Jul 29 01:56:35 2006 +0000
+++ b/src/xfaces.c	Sat Jul 29 01:57:38 2006 +0000
@@ -5717,6 +5717,8 @@
       if (!realize_basic_faces (f))
 	return -1;
       default_face = FACE_FROM_ID (f, DEFAULT_FACE_ID);
+      if (default_face == NULL)
+	abort ();  /* realize_basic_faces must have set it up  */
     }
 
   if (!get_lface_attributes (f, symbol, symbol_attrs, signal_p))
@@ -6221,6 +6223,8 @@
       if (! realize_basic_faces (f))
 	error ("Cannot realize default face");
       def_face = FACE_FROM_ID (f, DEFAULT_FACE_ID);
+      if (def_face == NULL)
+	abort ();  /* realize_basic_faces must have set it up  */
     }
 
   /* Dispatch to the appropriate handler.  */