From 2216f9402a9ddf232e15fdd508b9123011af8bd3 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 14 Nov 2016 13:03:07 +0100 Subject: Add/fix page coordinates to link targets. Correctly transformed target coordinates for PDF. Target coordinates for EPUB and HTML. --- platform/x11/pdfapp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'platform/x11/pdfapp.c') diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c index 19983ee9..58a50db5 100644 --- a/platform/x11/pdfapp.c +++ b/platform/x11/pdfapp.c @@ -1740,7 +1740,7 @@ void pdfapp_onmouse(pdfapp_t *app, int x, int y, int btn, int modifiers, int sta if (fz_is_external_link(ctx, link->uri)) pdfapp_gotouri(app, link->uri); else - pdfapp_gotopage(app, fz_resolve_link(ctx, app->doc, link->uri) + 1); + pdfapp_gotopage(app, fz_resolve_link(ctx, app->doc, link->uri, NULL, NULL) + 1); return; } } -- cgit v1.2.3