summaryrefslogtreecommitdiff
path: root/pango
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-06-10 06:39:38 +0200
committerTimm Bäder <mail@baedert.org>2020-06-10 06:39:38 +0200
commit1bb4e61c3285f95e01f13d70354716c11c27ce39 (patch)
tree2a0c1c637f078118cd884d956e139048d8ab22f2 /pango
parent6fa5ddf4d0fabad39c7488461f4f24559088a342 (diff)
downloadpango-1bb4e61c3285f95e01f13d70354716c11c27ce39.tar.gz
layout: Ignore setting the attributes to the same list
Diffstat (limited to 'pango')
-rw-r--r--pango/pango-layout.c4
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