summaryrefslogtreecommitdiff
path: root/pango/pango-renderer.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2017-06-30 13:44:30 -0400
committerMatthias Clasen <mclasen@redhat.com>2017-06-30 13:47:27 -0400
commitb17fe9b7d77fa2dd073821101fc3d10c8a13b02b (patch)
treeffc4abbacc07d3812df8541281516e247ad669f8 /pango/pango-renderer.c
parentb225c305e8a75e2ffff44fefa05bd67d0aea1e7e (diff)
downloadpango-b17fe9b7d77fa2dd073821101fc3d10c8a13b02b.tar.gz
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
Diffstat (limited to 'pango/pango-renderer.c')
-rw-r--r--pango/pango-renderer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pango-renderer.c b/pango/pango-renderer.c
index 9ccb7714..e439ca83 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,