(font_at): If the window W is not on a window system,
authorKenichi Handa <handa@m17n.org>
Tue, 24 Apr 2007 11:35:15 +0000 (11:35 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 24 Apr 2007 11:35:15 +0000 (11:35 +0000)
return Qnil.

src/font.c

index b0838cee1c013e939841799df12989e43f9a6abc..e6d38dee2fbc071581d0746f96cadb6dff6dfce3 100644 (file)
@@ -2888,6 +2888,8 @@ font_at (c, pos, face, w, object)
   int dummy;
 
   f = XFRAME (w->frame);
+  if (! FRAME_WINDOW_P (f))
+    return Qnil;
   if (! face)
     {
       if (STRINGP (object))