diff options
Diffstat (limited to 'pango')
-rw-r--r-- | pango/glyphstring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/glyphstring.c b/pango/glyphstring.c index ea9a6398..e52d41d4 100644 --- a/pango/glyphstring.c +++ b/pango/glyphstring.c @@ -548,7 +548,7 @@ pango_glyph_string_index_to_x_full (PangoGlyphString *glyphs, } if (trailing) - cluster_offset += 1; + cluster_offset = MIN (cluster_offset + 1, cluster_chars); if (G_UNLIKELY (!cluster_chars)) /* pedantic */ { |