From d442ada2f85d91077ef8cc20d43a48d832037635 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 28 Dec 2011 14:09:26 +0000 Subject: Outline/link destination tweaks. Move 'kind' into the fz_link_dest structure (as this makes more sense). Put an fz_link_dest rather than just a page number into the outlines structure. Correct parsing of actions and dests from pdf outlines. --- apps/pdfapp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps') diff --git a/apps/pdfapp.c b/apps/pdfapp.c index cf136261..c701e350 100644 --- a/apps/pdfapp.c +++ b/apps/pdfapp.c @@ -1037,10 +1037,10 @@ void pdfapp_onmouse(pdfapp_t *app, int x, int y, int btn, int modifiers, int sta wincursor(app, HAND); if (btn == 1 && state == 1) { - if (link->kind == FZ_LINK_URI) - pdfapp_gotouri(app, link->dest.uri.uri); - else if (link->kind == FZ_LINK_GOTO) - pdfapp_gotopage(app, link->dest.gotor.page); + if (link->dest.kind == FZ_LINK_URI) + pdfapp_gotouri(app, link->dest.ld.uri.uri); + else if (link->dest.kind == FZ_LINK_GOTO) + pdfapp_gotopage(app, link->dest.ld.gotor.page); return; } } -- cgit v1.2.3