summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pango/glyphstring.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pango/glyphstring.c b/pango/glyphstring.c
index 74462d26..cda4cf40 100644
--- a/pango/glyphstring.c
+++ b/pango/glyphstring.c
@@ -538,10 +538,13 @@ pango_glyph_string_index_to_x (PangoGlyphString *glyphs,
*x_pos = end_xpos + caret;
else
*x_pos = start_xpos + caret;
+ *x_pos += glyphs->glyphs[glyph_pos].geometry.x_offset;
return;
}
}
+fallback:
+
*x_pos = ((cluster_chars - cluster_offset) * start_xpos +
cluster_offset * end_xpos) / cluster_chars;
}