From: Gerd Moellmann Date: Wed, 22 Mar 2000 12:08:11 +0000 (+0000) Subject: (lface_same_font_attributes_p): Compare font attributes X-Git-Tag: emacs-pretest-21.0.90~4542 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d00b1b631f218f1929c0060d9412acc2c018797b;p=emacs.git (lface_same_font_attributes_p): Compare font attributes as strings only if both are known to be strings. --- diff --git a/src/xfaces.c b/src/xfaces.c index adfa1716c86..1996dae9812 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -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)))); }