summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/common/pdfapp.c4
-rw-r--r--apps/mozilla/moz_main.c4
2 files changed, 4 insertions, 4 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;
}
diff --git a/apps/mozilla/moz_main.c b/apps/mozilla/moz_main.c
index ba55ba90..30afc9d9 100644
--- a/apps/mozilla/moz_main.c
+++ b/apps/mozilla/moz_main.c
@@ -350,9 +350,9 @@ void pdfmoz_onmouse(pdfmoz_t *moz, int x, int y, int click)
SetCursor(moz->hand);
if (click)
{
- if (fz_isstring(link->dest))
+ if (link->kind == PDF_LURI)
pdfmoz_gotouri(moz, link->dest);
- if (fz_isindirect(link->dest))
+ else if (link->kind == PDF_LGOTO)
pdfmoz_gotopage(moz, link->dest);
return;
}