summaryrefslogtreecommitdiff
path: root/pango/pango-glyph-item.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-01-23 00:15:32 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-01-23 00:15:32 +0000
commit55bdaf842fb6cf02eae9bbbb1a6e48bfbed021cf (patch)
treea582e1d72376f0a757ae4e91835ff78c011f514c /pango/pango-glyph-item.c
parenta32f6025da958da04bb7df72aba2776933357ed0 (diff)
downloadpango-55bdaf842fb6cf02eae9bbbb1a6e48bfbed021cf.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=/trunk/; revision=2179
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 94f07881..6d5c5d98 100644
--- a/pango/pango-glyph-item.c
+++ b/pango/pango-glyph-item.c
@@ -182,7 +182,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++;
@@ -205,7 +205,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--;