summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2011-12-28 14:09:26 +0000
committerRobin Watts <robin.watts@artifex.com>2011-12-28 14:25:45 +0000
commitd442ada2f85d91077ef8cc20d43a48d832037635 (patch)
treea086095579001390c82a70ebd44498776069a6f2 /apps
parent0d70079719b89aae1e5342d098389ef04bf313bc (diff)
downloadmupdf-d442ada2f85d91077ef8cc20d43a48d832037635.tar.xz
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.
Diffstat (limited to 'apps')
-rw-r--r--apps/pdfapp.c8
1 files changed, 4 insertions, 4 deletions
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;
}
}