[poppler] poppler/glib: poppler-page.cc,1.17,1.18

Kristian Hogsberg krh at freedesktop.org
Mon Jun 20 10:22:37 PDT 2005


Update of /cvs/poppler/poppler/glib
In directory gabe:/tmp/cvs-serv30517/glib

Modified Files:
	poppler-page.cc 
Log Message:
2005-06-20  Kristian Høgsberg  <krh at 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).



Index: poppler-page.cc
===================================================================
RCS file: /cvs/poppler/poppler/glib/poppler-page.cc,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- poppler-page.cc	4 May 2005 06:32:38 -0000	1.17
+++ poppler-page.cc	20 Jun 2005 17:22:35 -0000	1.18
@@ -588,6 +588,12 @@
 		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);
 	}
 



More information about the poppler mailing list