]> www.fi.muni.cz Git - evince.git/commitdiff
Update to work with PopplerRectangle change from poppler CVS.
authorKristian Høgsberg <krh@redhat.com>
Fri, 1 Apr 2005 06:53:50 +0000 (06:53 +0000)
committerKristian Høgsberg <krh@src.gnome.org>
Fri, 1 Apr 2005 06:53:50 +0000 (06:53 +0000)
2005-03-31  Kristian Høgsberg  <krh@redhat.com>

        * pdf/ev-poppler.cc (pdf_document_get_links): Update to work with
        PopplerRectangle change from poppler CVS.

ChangeLog
pdf/ev-poppler.cc

index 181e28d04f0cd20c031d6dad0697629c905c4d6b..86e0b3f85ea468030895a7d6b3be1c9a8ece4cbd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-03-31  Kristian Høgsberg  <krh@redhat.com>
+
+       * 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  <jrb@redhat.com>
 
        * backend/ev-document.c: (ev_document_get_page_label):
index 1dd27b70c4747830cf0131e9705c3fc6f619363c..97c882f35084c97399015ed5540d163dcf8efc68 100644 (file)
@@ -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);
        }