From 4fc3718204b76424618ea5d577551aede676ffee Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Fri, 1 Apr 2005 06:53:50 +0000 Subject: [PATCH] Update to work with PopplerRectangle change from poppler CVS. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2005-03-31 Kristian Høgsberg * pdf/ev-poppler.cc (pdf_document_get_links): Update to work with PopplerRectangle change from poppler CVS. --- ChangeLog | 5 +++++ pdf/ev-poppler.cc | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 181e28d0..86e0b3f8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-03-31 Kristian Høgsberg + + * pdf/ev-poppler.cc (pdf_document_get_links): Update to work with + PopplerRectangle change from poppler CVS. + Thu Mar 31 13:27:50 2005 Jonathan Blandford * backend/ev-document.c: (ev_document_get_page_label): diff --git a/pdf/ev-poppler.cc b/pdf/ev-poppler.cc index 1dd27b70..97c882f3 100644 --- a/pdf/ev-poppler.cc +++ b/pdf/ev-poppler.cc @@ -303,11 +303,11 @@ pdf_document_get_links (EvDocument *document) link_mapping = (PopplerLinkMapping *)list->data; ev_link_mapping = g_new (EvLinkMapping, 1); ev_link_mapping->link = ev_link_from_action (link_mapping->action); - ev_link_mapping->x1 = link_mapping->x1; - ev_link_mapping->x2 = link_mapping->x2; + ev_link_mapping->x1 = link_mapping->area.x1; + ev_link_mapping->x2 = link_mapping->area.x2; /* Invert this for X-style coordinates */ - ev_link_mapping->y1 = height - link_mapping->y2; - ev_link_mapping->y2 = height - link_mapping->y1; + ev_link_mapping->y1 = height - link_mapping->area.y2; + ev_link_mapping->y2 = height - link_mapping->area.y1; retval = g_list_prepend (retval, ev_link_mapping); } -- 2.43.5