diff options
Diffstat (limited to 'pango/shape.c')
-rw-r--r-- | pango/shape.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pango/shape.c b/pango/shape.c index 96abd21b..fc165fbe 100644 --- a/pango/shape.c +++ b/pango/shape.c @@ -44,7 +44,7 @@ pango_shape (const gchar *text, PangoGlyphString *glyphs) { int i; - int last_cluster = -1; + int last_cluster; if (G_LIKELY (PANGO_IS_ENGINE_SHAPE (analysis->shape_engine) && PANGO_IS_FONT (analysis->font))) { @@ -109,6 +109,8 @@ pango_shape (const gchar *text, text, length, analysis, glyphs); } + /* make sure last_cluster is invalid */ + last_cluster = glyphs->log_clusters[0] - 1; for (i = 0; i < glyphs->num_glyphs; i++) { /* Set glyphs[i].attr.is_cluster_start based on log_clusters[] |