summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-11-06 18:45:11 +0000
committerMatthias Clasen <mclasen@redhat.com>2020-11-06 18:45:11 +0000
commiteea9bb5d0af998d4faea866883f41c544000b516 (patch)
treea65bba9ccedafdab7ec21ca9a3851eb8aee3bff1 /tests
parentad92e98e74e073679faf8a0e1072937945248c84 (diff)
parentb360aca4f4f1181d41452537474159818d14582e (diff)
downloadpango-eea9bb5d0af998d4faea866883f41c544000b516.tar.gz
Merge branch 'test-shape-fix' into 'master'
Test shape fix See merge request GNOME/pango!257
Diffstat (limited to 'tests')
-rw-r--r--tests/test-shape.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-shape.c b/tests/test-shape.c
index c2488dbf..53d6d40a 100644
--- a/tests/test-shape.c
+++ b/tests/test-shape.c
@@ -232,7 +232,7 @@ test_file (const gchar *filename, GString *string)
if (i + 1 < glyphs->num_glyphs)
p1 = text + item->offset + glyphs->log_clusters[i + 1];
else
- p1 = g_utf8_next_char (p);
+ p1 = text + item->offset + item->length;
}
append_text (s1, p, p1 - p);
g_string_append_printf (s2, "[%d]", gi->glyph);