]> git.eshelyaron.com Git - emacs.git/commitdiff
(Finternal_set_lisp_face_attribute): Check if the frame
authorKenichi Handa <handa@m17n.org>
Thu, 10 Jan 2008 12:31:02 +0000 (12:31 +0000)
committerKenichi Handa <handa@m17n.org>
Thu, 10 Jan 2008 12:31:02 +0000 (12:31 +0000)
is on a window system before accessing the fontset of the frame.

src/xfaces.c

index 51f13a30821fdc292e9223be034cee177554aca7..c2a5dd9d4a048e8bfc58520f3f5bff35cc3f0bf9 100644 (file)
@@ -4540,6 +4540,7 @@ FRAME 0 means change the face on all frames, and change the default
 
 #ifdef USE_FONT_BACKEND
          if (enable_font_backend
+             && FRAME_WINDOW_P (XFRAME (frame))
              && !UNSPECIFIEDP (value) && !IGNORE_DEFFACE_P (value))
            {
              int fontset;