summaryrefslogtreecommitdiff
path: root/utils/viewer-pangocairo.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/viewer-pangocairo.c')
-rw-r--r--utils/viewer-pangocairo.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/utils/viewer-pangocairo.c b/utils/viewer-pangocairo.c
index 98591e5a..c94de9e1 100644
--- a/utils/viewer-pangocairo.c
+++ b/utils/viewer-pangocairo.c
@@ -534,13 +534,14 @@ render_callback (PangoLayout *layout,
{
if (attrs[offset + i].is_cursor_position)
{
- pango_glyph_string_index_to_x (run->glyphs,
- text + run->item->offset,
- run->item->length,
- &run->item->analysis,
- p - start,
- trailing,
- &x);
+ pango_glyph_string_index_to_x_full (run->glyphs,
+ text + run->item->offset,
+ run->item->length,
+ &run->item->analysis,
+ (PangoLogAttr *)attrs + offset,
+ p - start,
+ trailing,
+ &x);
x += rect.x;
cairo_set_source_rgba (cr, 1.0, 0.0, 1.0, 0.5);