[pango/pango2: 158/178] line-breaker: Filter attributes properly




commit d94309a8d8d1cb31e68568f0fe2c763e084e7a6b
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 6fe52dc3e..0c170d5be 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]