summaryrefslogtreecommitdiff
path: root/pango/pango-glyph-item.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/pango-glyph-item.c')
-rw-r--r--pango/pango-glyph-item.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pango-glyph-item.c b/pango/pango-glyph-item.c
index 0030cda8..2506866a 100644
--- a/pango/pango-glyph-item.c
+++ b/pango/pango-glyph-item.c
@@ -183,7 +183,7 @@ _pango_glyph_item_iter_next_cluster (PangoGlyphItemIter *iter)
if (LTR (iter->glyph_item))
{
- cluster = glyphs->log_clusters[glyph_index + 1];
+ cluster = glyphs->log_clusters[glyph_index];
while (TRUE)
{
glyph_index++;
@@ -206,7 +206,7 @@ _pango_glyph_item_iter_next_cluster (PangoGlyphItemIter *iter)
}
else /* RTL */
{
- cluster = glyphs->log_clusters[glyph_index - 1];
+ cluster = glyphs->log_clusters[glyph_index];
while (TRUE)
{
glyph_index--;