diff options
author | Thomas White <taw@bitwiz.me.uk> | 2019-08-25 22:30:08 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2019-08-25 22:30:08 +0200 |
commit | bef894ac4fc76a7c163fba44a8127162a6c40d2b (patch) | |
tree | 1b035ee4b0e9e56f9ffff8134ca16341497f9f04 /libstorycode/gtk/gtkslideview.c | |
parent | 16daa2c43091242b142074405e0beeff16d2b133 (diff) |
Fix *bold* etc
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; } |