Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf
diff options
context:
space:
mode:
Diffstat (limited to 'pdf')
-rw-r--r--pdf/xpdf/pdf-document.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/pdf/xpdf/pdf-document.cc b/pdf/xpdf/pdf-document.cc
index a8824e8..36ad374 100644
--- a/pdf/xpdf/pdf-document.cc
+++ b/pdf/xpdf/pdf-document.cc
@@ -1005,7 +1005,11 @@ pdf_document_get_link (EvDocument *document, int x, int y)
PdfDocument *pdf_document = PDF_DOCUMENT (document);
LinkAction *action;
- action = pdf_document->links->find (x, y);
+ y = pdf_document->out->getBitmapHeight() - y;
+
+ action = pdf_document->links->find ((double)x / pdf_document->scale,
+ (double)y / pdf_document->scale);
+
if (action) {
return build_link_from_action (pdf_document, action, "");
} else {