summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-11-14 15:02:04 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-11-14 18:13:08 +0100
commitecba03d23babb5c8e50ae1a02cf549fa6b0cef63 (patch)
tree83649fd49095d239c7d4e3fe6ef6be248064acfd /platform
parent9387c2e705f140aa4c26bc25a259868fb7a473e9 (diff)
downloadmupdf-ecba03d23babb5c8e50ae1a02cf549fa6b0cef63.tar.xz
gl: Only force a ui redraw when link is clicked, not just highlighted.
Diffstat (limited to 'platform')
-rw-r--r--platform/gl/gl-main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/gl/gl-main.c b/platform/gl/gl-main.c
index 0541f749..46c65262 100644
--- a/platform/gl/gl-main.c
+++ b/platform/gl/gl-main.c
@@ -588,9 +588,11 @@ static void do_links(fz_link *link, int xofs, int yofs)
if (fz_is_external_link(ctx, link->uri))
open_browser(link->uri);
else
+ {
jump_to_page(fz_resolve_link(ctx, doc, link->uri, NULL, NULL));
+ ui_needs_update = 1;
+ }
}
- ui_needs_update = 1;
}
link = link->next;