summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-06-20 08:24:37 -0700
committerMatthias Clasen <mclasen@redhat.com>2022-07-04 11:17:20 -0400
commit63f12712c75398e6abe0b57e135a2dd7adb78c73 (patch)
tree9677ef23f6b0db06e633e59c5060725e104dc905
parent366cbe701c398782c4543313625187e7fa297135 (diff)
downloadpango-63f12712c75398e6abe0b57e135a2dd7adb78c73.tar.gz
line-breaker: Filter attributes properly
We need to extract the itemize attributes first, or we'll miss attributes that are classified as affecting both itemization and shaping.
-rw-r--r--pango/pango-line-breaker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-line-breaker.c b/pango/pango-line-breaker.c
index 6fe52dc3..0c170d5b 100644
--- a/pango/pango-line-breaker.c
+++ b/pango/pango-line-breaker.c
@@ -232,8 +232,8 @@ ensure_items (PangoLineBreaker *self)
self->render_attrs = pango_attr_list_copy (self->data->attrs);
if (self->render_attrs)
{
- shape_attrs = pango_attr_list_filter (self->render_attrs, pango_attribute_affects_break_or_shape, NULL);
itemize_attrs = pango_attr_list_filter (self->render_attrs, pango_attribute_affects_itemization, NULL);
+ shape_attrs = pango_attr_list_filter (self->render_attrs, pango_attribute_affects_break_or_shape, NULL);
}
self->items = pango_itemize_with_font (self->context,