diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2010-05-08 10:24:36 (GMT) |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2010-05-08 10:24:36 (GMT) |
commit | eb80ecd1f7aa6ff57d2a3324c691274745ca4ed0 (patch) | |
tree | 55159ec20fa770c90a110aaa390f905d09b8a2fa /backend/pdf | |
parent | d92e01606a301b6f677d85c3b24348f3b51ed2f4 (diff) |
[libdocument] Use EvPage instead of EvRenderContext in get_selected_text()
It doesn't depend on scale and rotation so we only need the page.
Diffstat (limited to 'backend/pdf')
-rw-r--r-- | backend/pdf/ev-poppler.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc index ac1fce8..add48f7 100644 --- a/backend/pdf/ev-poppler.cc +++ b/backend/pdf/ev-poppler.cc @@ -1960,7 +1960,7 @@ pdf_selection_render_selection (EvSelection *selection, static gchar * pdf_selection_get_selected_text (EvSelection *selection, - EvRenderContext *rc, + EvPage *page, EvSelectionStyle style, EvRectangle *points) { @@ -1969,7 +1969,7 @@ pdf_selection_get_selected_text (EvSelection *selection, double height; char *retval; - poppler_page = POPPLER_PAGE (rc->page->backend_page); + poppler_page = POPPLER_PAGE (page->backend_page); poppler_page_get_size (poppler_page, NULL, &height); r.x1 = points->x1; |