From d00b1b631f218f1929c0060d9412acc2c018797b Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Wed, 22 Mar 2000 12:08:11 +0000 Subject: [PATCH] (lface_same_font_attributes_p): Compare font attributes as strings only if both are known to be strings. --- src/xfaces.c | 1 + 1 file changed, 1 insertion(+) 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)))); } -- 2.39.5