2005-01-23 Stephane LOEUILLET <stephane.loeuillet@tiscali.fr>
* pdf/xpdf/pdf-document.cc (pdf_document_get_link): divide by
scale at the right time. Bug #164996
+2005-01-23 Stephane LOEUILLET <stephane.loeuillet@tiscali.fr>
+
+ * pdf/xpdf/pdf-document.cc (pdf_document_get_link): divide by
+ scale at the right time. Bug #164996
+
2005-01-22 Martin Kretzschmar <martink@gnome.org>
* pdf/xpdf/GlobalParams.cc: My 2005-01-05 change didn't actually
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) {