(Finternal_set_lisp_face_attribute): Allow :color property
authorKim F. Storm <storm@cua.dk>
Fri, 18 Feb 2005 22:55:53 +0000 (22:55 +0000)
committerKim F. Storm <storm@cua.dk>
Fri, 18 Feb 2005 22:55:53 +0000 (22:55 +0000)
to be nil in a :box attribute value list; customize prints that
as lisp value when no box color is specified.

src/xfaces.c

index c562ce3..c02295c 100644 (file)
@@ -4148,7 +4148,7 @@ FRAME 0 means change the face on all frames, and change the default
                }
              else if (EQ (k, QCcolor))
                {
-                 if (!STRINGP (v) || SCHARS (v) == 0)
+                 if (!NILP (v) && (!STRINGP (v) || SCHARS (v) == 0))
                    break;
                }
              else if (EQ (k, QCstyle))