diff options
author | Sebastian Rasmussen <sebras@hotmail.com> | 2009-08-23 17:25:04 +0200 |
---|---|---|
committer | Sebastian Rasmussen <sebras@hotmail.com> | 2009-08-23 17:25:04 +0200 |
commit | c2c6b06cc5ada8c52a6a7624331eece5ac5fd568 (patch) | |
tree | 4451ee39a3d1bc40b8f35a9b29e088398517829f /apps/common/pdfapp.c | |
parent | 9a36f6887c631f2e638805f1e91ee2be90ba955e (diff) | |
download | mupdf-c2c6b06cc5ada8c52a6a7624331eece5ac5fd568.tar.xz |
Add type to links so applications can determine how to handle them.
Diffstat (limited to 'apps/common/pdfapp.c')
-rw-r--r-- | apps/common/pdfapp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/common/pdfapp.c b/apps/common/pdfapp.c index bfe09546..5aeb699c 100644 --- a/apps/common/pdfapp.c +++ b/apps/common/pdfapp.c @@ -543,9 +543,9 @@ 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 (fz_isstring(link->dest)) + if (link->kind == PDF_LURI) pdfapp_gotouri(app, link->dest); - if (fz_isindirect(link->dest)) + else if (link->kind == PDF_LGOTO) pdfapp_gotopage(app, link->dest); return; } |