From 57a8ca8e4c7ee8cd49081ba500563d33cfa048d0 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 18 Jan 2005 12:45:49 +0000 Subject: Fix bugs in the links implementation and change cursor when hovering a 2005-01-18 Marco Pesenti Gritti * 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. --- (limited to 'pdf') 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 { -- cgit v0.9.1