[pango/fix-emoji-in-tests: 2/5] Make sure glyphinfo is fully initialized




commit 358cc4f153001d3c1d1c869d5086ce286ab1e0b6
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Nov 26 15:52:59 2021 -0500

    Make sure glyphinfo is fully initialized
    
    The alternative is random test failures, now
    that we check all these fields in test-layout.

 pango/pango-layout.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index a5806774..703f4573 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -3501,6 +3501,7 @@ shape_tab (PangoLayoutLine  *line,
   glyphs->glyphs[0].geometry.x_offset = 0;
   glyphs->glyphs[0].geometry.y_offset = 0;
   glyphs->glyphs[0].attr.is_cluster_start = 1;
+  glyphs->glyphs[0].attr.is_color = 0;
 
   glyphs->log_clusters[0] = 0;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]