Commit 02342daa authored by Philipp Erhardt's avatar Philipp Erhardt
Browse files

Add padding when jumping to link targets

parent a779237c
......@@ -567,10 +567,10 @@ bool GridLayout::goto_link_destination(const Poppler::LinkDestination &link) {
QPoint p = get_target_page_distance(link_page);
if (link.isChangeLeft()) {
p.rx() += link_point.x() * size;
p.rx() += link_point.x() * size - width * search_padding;
}
if (link.isChangeTop()) {
p.ry() += link_point.y() * size;
p.ry() += link_point.y() * size - height * search_padding;
}
return view_point(p);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment