[pango] Don't throw away text prematurely



commit b17fe9b7d77fa2dd073821101fc3d10c8a13b02b
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Jun 30 13:44:30 2017 -0400

    Don't throw away text prematurely
    
    When calling into cairo to render glyphs, we want
    to use show_text_glyphs and pass the text along,
    if the surface supports that operation. But here,
    we throw the text away prematurely and end up
    always end passing no text or clusters down to
    cairo.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=784394

 pango/pango-renderer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pango/pango-renderer.c b/pango/pango-renderer.c
index 9ccb771..e439ca8 100644
--- a/pango/pango-renderer.c
+++ b/pango/pango-renderer.c
@@ -701,7 +701,7 @@ pango_renderer_draw_glyph_item (PangoRenderer    *renderer,
                                int               x,
                                int               y)
 {
-  if (G_UNLIKELY (text))
+  if (G_UNLIKELY (!text))
     {
       pango_renderer_draw_glyphs (renderer,
                                  glyph_item->item->analysis.font,


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