summaryrefslogtreecommitdiff
path: root/pango/glyphstring.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-06-24 13:57:56 +0000
committerMatthias Clasen <mclasen@redhat.com>2022-06-24 13:57:56 +0000
commit73e90c3ff7ad2a92cdcfe1832b687d965a76e9b1 (patch)
treeb117cbf72fd4b1fb2b7e5c9aa021e5d918b541f5 /pango/glyphstring.c
parentab12425de4668f02f7390b987f94374fa5f6f871 (diff)
parent7fa2dc0c69a1b1499913be65a20619e35b149ec5 (diff)
downloadpango-73e90c3ff7ad2a92cdcfe1832b687d965a76e9b1.tar.gz
Merge branch 'fix-lig-carets-sinhala' into 'main'
Fix handling of ligature carets in some cases Closes #684 See merge request GNOME/pango!628
Diffstat (limited to 'pango/glyphstring.c')
-rw-r--r--pango/glyphstring.c2
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 */
{