]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix stupid crash during startup.
authorKaroly Lorentey <lorentey@elte.hu>
Sat, 20 May 2006 11:17:52 +0000 (11:17 +0000)
committerKaroly Lorentey <lorentey@elte.hu>
Sat, 20 May 2006 11:17:52 +0000 (11:17 +0000)
* src/xfaces.c (realize_default_face): Don't use FRAME_FONT unless frame
  is an X frame.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-559

src/xfaces.c

index 15556ca88f8aa08be0b7ae4be73c30511a993716..0a77a24189f097796fe7e485bfae9c4c61f0fc31 100644 (file)
@@ -7092,7 +7092,7 @@ realize_default_face (f)
 
 #ifdef HAVE_WINDOW_SYSTEM
 #ifdef HAVE_X_WINDOWS  
-  if (face->font != FRAME_FONT (f))
+  if (FRAME_X_P (f) && face->font != FRAME_FONT (f))
     /* As the font specified for the frame was not acceptable as a
        font for the default face (perhaps because auto-scaled fonts
        are rejected), we must adjust the frame font.  */