Commit 4746e63a authored by Kristian Høgsberg's avatar Kristian Høgsberg

2005-06-20 Kristian Høgsberg <krh@redhat.com>

        * glib/poppler-page.cc (poppler_page_get_link_mapping): Adjust
        link coordinates so they're relative to bounding box lower left
        corner (#3396).
parent bada3d03
2005-06-20 Kristian Høgsberg <krh@redhat.com>
* glib/poppler-page.cc (poppler_page_get_link_mapping): Adjust
link coordinates so they're relative to bounding box lower left
corner (#3396).
2005-06-17 Kristian Høgsberg <krh@redhat.com>
* autogen.sh: Patch from Emil Soleyman-Zomalan to enable checks
......
......@@ -588,6 +588,12 @@ poppler_page_get_link_mapping (PopplerPage *page)
mapping->action = _poppler_action_new (page->document, link_action, NULL);
link->getRect (&(mapping->area.x1), &(mapping->area.y1),
&(mapping->area.x2), &(mapping->area.y2));
mapping->area.x1 -= page->page->getBox()->x1;
mapping->area.x2 -= page->page->getBox()->x1;
mapping->area.y1 -= page->page->getBox()->y1;
mapping->area.y2 -= page->page->getBox()->y1;
map_list = g_list_prepend (map_list, mapping);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment