From 63f12712c75398e6abe0b57e135a2dd7adb78c73 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 20 Jun 2022 08:24:37 -0700 Subject: 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. --- pango/pango-line-breaker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v1.2.1