[pango/pango2: 163/168] line-breaker: Filter attributes properly
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pango/pango2: 163/168] line-breaker: Filter attributes properly
- Date: Mon, 20 Jun 2022 16:28:46 +0000 (UTC)
commit aa7077c33d55b6f32c4ace38f31d029a3b6ff4a7
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Jun 20 08:24:37 2022 -0700
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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]