diff options
| author | Chong Yidong | 2009-02-06 16:49:35 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-02-06 16:49:35 +0000 |
| commit | 62d168d8b3dedb5b27a64639d48a82c0176ebb22 (patch) | |
| tree | 1fb038cd582f379b0629113a6e83f0b89b518858 /src | |
| parent | 2d283c7ccd869ff91ab82aca4c23dc1ce4ce2ce0 (diff) | |
| download | emacs-62d168d8b3dedb5b27a64639d48a82c0176ebb22.tar.gz emacs-62d168d8b3dedb5b27a64639d48a82c0176ebb22.zip | |
(Fx_create_frame): Signal an error if no font is found (Bug#2147).
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c index 4be3d1df664..f1df3c27d0d 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -3307,6 +3307,11 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 3307 | /* Extract the window parameters from the supplied values | 3307 | /* Extract the window parameters from the supplied values |
| 3308 | that are needed to determine window geometry. */ | 3308 | that are needed to determine window geometry. */ |
| 3309 | x_default_font_parameter (f, parms); | 3309 | x_default_font_parameter (f, parms); |
| 3310 | if (!FRAME_FONT (f)) | ||
| 3311 | { | ||
| 3312 | delete_frame (frame, Qnoelisp); | ||
| 3313 | error ("Invalid frame font"); | ||
| 3314 | } | ||
| 3310 | 3315 | ||
| 3311 | #ifdef USE_LUCID | 3316 | #ifdef USE_LUCID |
| 3312 | /* Prevent lwlib/xlwmenu.c from crashing because of a bug | 3317 | /* Prevent lwlib/xlwmenu.c from crashing because of a bug |