diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2009-12-08 12:26:44 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2009-12-08 12:41:02 (GMT) |
commit | ed252626b3d584bc3d98649ce2a217c0b82ec50b (patch) | |
tree | a931d8c9d62cfb7cf08f15f12e8642a804a8d577 /backend/pdf | |
parent | ea6eb7ebc9898463a4e165d76aea75634a8b519b (diff) |
Use EvPage instead of a render context to get the selection map
Selection map doesn't depend on scale/rotation so only the page is
needed.
Diffstat (limited to 'backend/pdf')
-rw-r--r-- | backend/pdf/ev-poppler.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc index 784295c..506e934 100644 --- a/backend/pdf/ev-poppler.cc +++ b/backend/pdf/ev-poppler.cc @@ -2012,15 +2012,15 @@ pdf_selection_get_selection_region (EvSelection *selection, } static GdkRegion * -pdf_selection_get_selection_map (EvSelection *selection, - EvRenderContext *rc) +pdf_selection_get_selection_map (EvSelection *selection, + EvPage *page) { PopplerPage *poppler_page; PopplerRectangle points; GList *region; GdkRegion *retval; - poppler_page = POPPLER_PAGE (rc->page->backend_page); + poppler_page = POPPLER_PAGE (page->backend_page); points.x1 = 0.0; points.y1 = 0.0; |