diff options
author | Behdad Esfahbod <behdad@gnome.org> | 2007-01-23 00:20:52 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2007-01-23 00:20:52 +0000 |
commit | d0f840d93f59eeabaeea989f883ab2af796d88b7 (patch) | |
tree | 01b668b087cbe7c01701d5ce12109d593d8b6862 /pango | |
parent | 8ea9e0d36bde39b68b33bd9ae71e8b0611123626 (diff) | |
download | pango-d0f840d93f59eeabaeea989f883ab2af796d88b7.tar.gz |
Fix the "menu accels are two chars wide" bug that was introduced by the
2007-01-22 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-glyph-item.c (_pango_glyph_item_iter_next_cluster):
Fix the "menu accels are two chars wide" bug that was introduced
by the recent changes in this function, in 1.15.4. Apparently
glyph_index means separate things in next_cluster and prev_cluster.
svn path=/branches/pango-1-14/; revision=2181
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pango-glyph-item.c | 4 |
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--; |