changeset 90811:c1ed0fd37416

(font_at): If the window W is not on a window system, return Qnil.
author Kenichi Handa <handa@m17n.org>
date Tue, 24 Apr 2007 11:35:15 +0000
parents f586b66d5c40
children 6137cc8ddf90
files src/font.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/font.c	Tue Apr 24 08:14:00 2007 +0000
+++ b/src/font.c	Tue Apr 24 11:35:15 2007 +0000
@@ -2888,6 +2888,8 @@
   int dummy;
 
   f = XFRAME (w->frame);
+  if (! FRAME_WINDOW_P (f))
+    return Qnil;
   if (! face)
     {
       if (STRINGP (object))