summaryrefslogtreecommitdiff
path: root/pango/pangocairo-render.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2008-08-06 09:17:11 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2008-08-06 09:17:11 +0000
commit5ed20a3adf877fb463c7bf5442a32ad59082fe5b (patch)
tree8eec1865c2f607d084834f48c86ff2bdad9a4f35 /pango/pangocairo-render.c
parent465e30522a3e1b69ee84a5a33abbc2fd8e67336b (diff)
downloadpango-5ed20a3adf877fb463c7bf5442a32ad59082fe5b.tar.gz
Fix cluster iteration.
2008-08-06 Behdad Esfahbod <behdad@gnome.org> * pango/pangocairo-render.c (pango_cairo_renderer_draw_glyph_item): Fix cluster iteration. svn path=/trunk/; revision=2687
Diffstat (limited to 'pango/pangocairo-render.c')
-rw-r--r--pango/pangocairo-render.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pangocairo-render.c b/pango/pangocairo-render.c
index 4078a61f..b7b28266 100644
--- a/pango/pangocairo-render.c
+++ b/pango/pangocairo-render.c
@@ -439,8 +439,8 @@ pango_cairo_renderer_draw_glyph_item (PangoRenderer *renderer,
g_warning ("pango_cairo_renderer_draw_glyph_item: bad cluster has num_glyphs %d", num_glyphs);
/* Discount empty and unknown glyphs */
- for (i = MIN (iter.start_glyph, iter.end_glyph);
- i < MAX (iter.start_glyph, iter.end_glyph);
+ for (i = MIN (iter.start_glyph, iter.end_glyph+1);
+ i < MAX (iter.start_glyph+1, iter.end_glyph);
i++)
{
PangoGlyphInfo *gi = &glyphs->glyphs[i];