diff --git a/pango/cogl-pango-render.c b/pango/cogl-pango-render.c index 052233f85..6e518c1b7 100644 --- a/pango/cogl-pango-render.c +++ b/pango/cogl-pango-render.c @@ -673,21 +673,18 @@ cogl_pango_renderer_draw_glyphs (PangoRenderer *renderer, gi->glyph); if (cache_value == NULL) - cogl_pango_renderer_draw_box (renderer, - x, - y, - PANGO_UNKNOWN_GLYPH_WIDTH, - PANGO_UNKNOWN_GLYPH_HEIGHT); + { + cogl_pango_renderer_draw_box (renderer, + x, + y, + PANGO_UNKNOWN_GLYPH_WIDTH, + PANGO_UNKNOWN_GLYPH_HEIGHT); + } else { - float width, height; - x += (float)(cache_value->draw_x); y += (float)(cache_value->draw_y); - width = x + (float)(cache_value->draw_width); - height = y + (float)(cache_value->draw_height); - cogl_pango_renderer_draw_glyph (priv, cache_value, x, y); } }