From 0243f814940b6f2a02664b5a19ef21e636e2af2e Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 10 Oct 2019 20:33:59 +0200 Subject: Keep 'run' out of struct slide_pos --- libstorycode/gtk/gtkslideview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libstorycode/gtk') diff --git a/libstorycode/gtk/gtkslideview.c b/libstorycode/gtk/gtkslideview.c index 6c23cad..82f0a7f 100644 --- a/libstorycode/gtk/gtkslideview.c +++ b/libstorycode/gtk/gtkslideview.c @@ -192,7 +192,7 @@ static int gtksv_get_cursor_pos(SlideItem *item, Stylesheet *stylesheet, slide_item_get_padding(item, stylesheet, &padl, &padr, &padt, &padb, slide_w, slide_h); - offs = slide_pos_trail_to_offset(item, cpos.para, cpos.run, cpos.pos, cpos.trail); + offs = slide_pos_trail_to_offset(item, cpos.para, cpos.pos, cpos.trail); pango_layout_get_cursor_pos(item->paras[cpos.para].layout, offs, &rect, NULL); *x = pango_units_to_double(rect.x) + padl; *y = pango_units_to_double(rect.y) + gtksv_para_top(item, cpos.para) + padt; -- cgit v1.2.3