summaryrefslogtreecommitdiff
path: root/pango/pango-attributes.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-06-12 17:45:22 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-06-12 17:45:22 +0000
commit0713b108da9cb2306f63dceeff585c1185874f84 (patch)
treea290e85f9e3862edbd92476752001c8156b28221 /pango/pango-attributes.c
parent395113c20099ac48fa4b838f00f8244776edb78a (diff)
downloadpango-0713b108da9cb2306f63dceeff585c1185874f84.tar.gz
Compare set fields of two font descriptions for equality too, as
2007-06-12 Behdad Esfahbod <behdad@gnome.org> * pango/pango-attributes.c (pango_attr_font_desc_equal): Compare set fields of two font descriptions for equality too, as pango_font_description_equal() doesn't check the mask. svn path=/trunk/; revision=2351
Diffstat (limited to 'pango/pango-attributes.c')
-rw-r--r--pango/pango-attributes.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pango/pango-attributes.c b/pango/pango-attributes.c
index 0e0e3c40..ba3973dd 100644
--- a/pango/pango-attributes.c
+++ b/pango/pango-attributes.c
@@ -613,7 +613,9 @@ pango_attr_font_desc_equal (const PangoAttribute *attr1,
const PangoAttrFontDesc *desc_attr1 = (const PangoAttrFontDesc *)attr1;
const PangoAttrFontDesc *desc_attr2 = (const PangoAttrFontDesc *)attr2;
- return pango_font_description_equal (desc_attr1->desc, desc_attr2->desc);
+ return pango_font_description_get_set_fields (desc_attr1->desc) ==
+ pango_font_description_get_set_fields (desc_attr2->desc) &&
+ pango_font_description_equal (desc_attr1->desc, desc_attr2->desc);
}
/**