changeset 51315:7156fc3b3571

(realize_default_face): Do not abort if lface is non-existent - reverts change from v1.275.
author Glenn Morris <rgm@gnu.org>
date Thu, 29 May 2003 17:08:16 +0000
parents 3a4379245dd8
children ce710f8e5a48
files src/xfaces.c
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfaces.c	Thu May 29 02:54:03 2003 +0000
+++ b/src/xfaces.c	Thu May 29 17:08:16 2003 +0000
@@ -6575,7 +6575,12 @@
   /* If the `default' face is not yet known, create it.  */
   lface = lface_from_face_name (f, Qdefault, 0);
   if (NILP (lface))
-    abort ();
+  {
+       Lisp_Object frame;
+       XSETFRAME (frame, f);
+       lface = Finternal_make_lisp_face (Qdefault, frame);
+  }
+
 
 #ifdef HAVE_WINDOW_SYSTEM
   if (FRAME_WINDOW_P (f))