# HG changeset patch # User Karoly Lorentey # Date 1148123872 0 # Node ID 717426715b0379cda04042fa13a09deb77e4f28c # Parent ab6ab63755f70cf7cd7ca31ca77bdb6a281c89b0 Fix stupid crash during startup. * 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 diff -r ab6ab63755f7 -r 717426715b03 src/xfaces.c --- a/src/xfaces.c Sat May 20 10:32:11 2006 +0000 +++ b/src/xfaces.c Sat May 20 11:17:52 2006 +0000 @@ -7092,7 +7092,7 @@ #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. */