diff options
author | Thomas White <taw@bitwiz.me.uk> | 2019-08-19 08:14:31 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2019-08-19 08:14:31 +0200 |
commit | 93550c8bee5e3c914b5c5a1b5993d40f0033d117 (patch) | |
tree | 1e04a225009c7c0f043d2a2985a632520875e330 /libstorycode/gtk/gtkslideview.c | |
parent | 16daa2c43091242b142074405e0beeff16d2b133 (diff) |
WIPtmp
Diffstat (limited to 'libstorycode/gtk/gtkslideview.c')
-rw-r--r-- | libstorycode/gtk/gtkslideview.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libstorycode/gtk/gtkslideview.c b/libstorycode/gtk/gtkslideview.c index 9766572..0ec1c5f 100644 --- a/libstorycode/gtk/gtkslideview.c +++ b/libstorycode/gtk/gtkslideview.c @@ -570,8 +570,8 @@ static int find_cursor(SlideItem *item, Stylesheet *stylesheet, pos->para = i-1; pango_layout_xy_to_index(item->paras[i-1].layout, - pango_units_from_double(x), - pango_units_from_double(y - top), + pango_units_from_double(x - padl), + pango_units_from_double(y - top - padt), &pos->pos, &pos->trail); return 0; } |