changeset 101836:06bbdc2cfd6f

(Fx_create_frame): Signal an error if no font is found (Bug#2147).
author Chong Yidong <cyd@stupidchicken.com>
date Fri, 06 Feb 2009 16:49:35 +0000
parents 0834b59ed600
children a308d330b349
files src/xfns.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Fri Feb 06 16:48:46 2009 +0000
+++ b/src/xfns.c	Fri Feb 06 16:49:35 2009 +0000
@@ -3307,6 +3307,11 @@
   /* Extract the window parameters from the supplied values
      that are needed to determine window geometry.  */
   x_default_font_parameter (f, parms);
+  if (!FRAME_FONT (f))
+    {
+      delete_frame (frame, Qnoelisp);
+      error ("Invalid frame font");
+    }
 
 #ifdef USE_LUCID
   /* Prevent lwlib/xlwmenu.c from crashing because of a bug