From 1385a8061f0a187e18ba79540481e7698f2e0667 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 24 Apr 2007 11:35:15 +0000 Subject: [PATCH] (font_at): If the window W is not on a window system, return Qnil. --- src/font.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/font.c b/src/font.c index b0838cee1c0..e6d38dee2fb 100644 --- a/src/font.c +++ b/src/font.c @@ -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)) -- 2.39.5