diff options
Diffstat (limited to 'pango/pango-layout.c')
-rw-r--r-- | pango/pango-layout.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c index 97e24d1b..3c138327 100644 --- a/pango/pango-layout.c +++ b/pango/pango-layout.c @@ -694,6 +694,10 @@ pango_layout_set_attributes (PangoLayout *layout, !_pango_attr_list_has_attributes (attrs)) return; + if (layout->attrs && + pango_attr_list_equal (layout->attrs, attrs)) + return; + old_attrs = layout->attrs; /* We always clear lines such that this function can be called |