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.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/pdf/xpdf/pdf-document.cc b/pdf/xpdf/pdf-document.cc
index 96b1132..8449752 100644
--- a/pdf/xpdf/pdf-document.cc
+++ b/pdf/xpdf/pdf-document.cc
@@ -1045,17 +1045,17 @@ pdf_document_get_link (EvDocument *document, int x, int y)
return NULL;
}
- /* Zoom */
- link_x = x / pdf_document->scale;
- link_y = y / pdf_document->scale;
-
/* Offset */
- link_x -= pdf_document->page_x_offset;
- link_y -= pdf_document->page_y_offset;
+ link_x = x - pdf_document->page_x_offset;
+ link_y = y - pdf_document->page_y_offset;
/* Inverse y */
link_y = pdf_document->out->getBitmapHeight() - link_y;
+ /* Zoom */
+ link_x = link_x / pdf_document->scale;
+ link_y = link_y / pdf_document->scale;
+
action = pdf_document->links->find (link_x, link_y);
if (action) {