Commit d00b1b63 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(lface_same_font_attributes_p): Compare font attributes

as strings only if both are known to be strings.
parent 1fb352e0
......@@ -4432,6 +4432,7 @@ lface_same_font_attributes_p (lface1, lface2)
&& EQ (lface1[LFACE_SLANT_INDEX], lface2[LFACE_SLANT_INDEX])
&& (EQ (lface1[LFACE_FONT_INDEX], lface2[LFACE_FONT_INDEX])
|| (STRINGP (lface1[LFACE_FONT_INDEX])
&& STRINGP (lface2[LFACE_FONT_INDEX])
&& xstricmp (XSTRING (lface1[LFACE_FONT_INDEX])->data,
XSTRING (lface2[LFACE_FONT_INDEX])->data))));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment