Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2005-01-18 12:45:49 (GMT)
committer Marco Pesenti Gritti <marco@src.gnome.org>2005-01-18 12:45:49 (GMT)
commit57a8ca8e4c7ee8cd49081ba500563d33cfa048d0 (patch)
tree1b384c21e10e64d8b66e09d612abd98c8f52d8e7 /pdf
parentd5023779f9c79df5f0b0441ef76a14caa07d71b8 (diff)
Fix bugs in the links implementation and change cursor when hovering a
2005-01-18 Marco Pesenti Gritti <marco@gnome.org> * pdf/xpdf/pdf-document.cc: * shell/ev-view.c: (status_message_from_link), (ev_view_set_status), (ev_view_set_cursor), (ev_view_motion_notify_event), (ev_view_init): * shell/ev-window.c: (view_status_changed_cb), (ev_window_init): Fix bugs in the links implementation and change cursor when hovering a link.
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 {