diff options
author | Thomas White <taw@physics.org> | 2020-01-26 16:13:30 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-01-26 16:13:30 +0100 |
commit | 30ab736a239446d97a30904a90c53d4f1afe5e74 (patch) | |
tree | 5ec4ed7144a00b39a8b90d4b6afda8b48b62755e | |
parent | 70a386fc3b16396974f69a311c71a81a3e50cb0d (diff) |
Fix double accounting of padding
-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 083d732..b555307 100644 --- a/libstorycode/gtk/gtkslideview.c +++ b/libstorycode/gtk/gtkslideview.c @@ -594,8 +594,8 @@ static int gtksv_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 - padl), - pango_units_from_double(y - top - padt), + pango_units_from_double(x), + pango_units_from_double(y - top), &pos->pos, &pos->trail); return 0; } |