diff options
author | Matthias Clasen <mclasen@redhat.com> | 2022-06-20 08:24:37 -0700 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2022-06-22 13:57:26 -0400 |
commit | d94309a8d8d1cb31e68568f0fe2c763e084e7a6b (patch) | |
tree | f1d6a4e3d23101b9d7102b23b7b790b75fb95577 /pango | |
parent | 966abf9bd8575db140914db16e8f4b23d6052049 (diff) | |
download | pango-d94309a8d8d1cb31e68568f0fe2c763e084e7a6b.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.
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pango-line-breaker.c | 2 |
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, |