From c2c6b06cc5ada8c52a6a7624331eece5ac5fd568 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Sun, 23 Aug 2009 17:25:04 +0200 Subject: Add type to links so applications can determine how to handle them. --- apps/mozilla/moz_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/mozilla') 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; } -- cgit v1.2.3