Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf/xpdf/pdf-document.cc
diff options
context:
space:
mode:
Diffstat (limited to 'pdf/xpdf/pdf-document.cc')
-rw-r--r--pdf/xpdf/pdf-document.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/pdf/xpdf/pdf-document.cc b/pdf/xpdf/pdf-document.cc
index b9180bd..96b1132 100644
--- a/pdf/xpdf/pdf-document.cc
+++ b/pdf/xpdf/pdf-document.cc
@@ -1041,6 +1041,10 @@ pdf_document_get_link (EvDocument *document, int x, int y)
LinkAction *action;
double link_x, link_y;
+ if (pdf_document->links == NULL) {
+ return NULL;
+ }
+
/* Zoom */
link_x = x / pdf_document->scale;
link_y = y / pdf_document->scale;