changeset 26601:e23e3120d84f

(set_lface_from_font_name): Fix previous change. (recompute_basic_faces): Change assert to abort.
author Gerd Moellmann <gerd@gnu.org>
date Fri, 26 Nov 1999 10:14:39 +0000
parents a31098c759d5
children 494a81f37398
files src/xfaces.c
diffstat 1 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfaces.c	Thu Nov 25 19:18:59 1999 +0000
+++ b/src/xfaces.c	Fri Nov 26 10:14:39 1999 +0000
@@ -690,10 +690,9 @@
 {
   if (FRAME_FACE_CACHE (f))
     {
-      int realized_p;
       clear_face_cache (0);
-      realized_p = realize_basic_faces (f);
-      xassert (realized_p);
+      if (!realize_basic_faces (f))
+	abort ();
     }
 }
 
@@ -2736,7 +2735,9 @@
   else
     {
       font.name = STRDUPA (font_name);
-      if (!split_font_name (f, &font, 1))
+      if (split_font_name (f, &font, 1))
+	have_font_p = 1;
+      else
 	{
 	  /* The font name may be something like `6x13'.  Make
 	     sure we use the full name.  */
@@ -2745,14 +2746,14 @@
 	  BLOCK_INPUT;
 	  font_info = fs_load_font (f, FRAME_X_FONT_TABLE (f),
 				    CHARSET_ASCII, font_name, -1);
-	  UNBLOCK_INPUT;
-
 	  if (font_info)
 	    {
 	      font.name = STRDUPA (font_info->full_name);
 	      split_font_name (f, &font, 1);
 	      have_font_p = 1;
 	    }
+	  
+	  UNBLOCK_INPUT;
 	}
     }