Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf
diff options
context:
space:
mode:
authorStephane LOEUILLET <stephane.loeuillet@tiscali.fr>2005-01-23 20:49:04 (GMT)
committer Martin Kretzschmar <martink@src.gnome.org>2005-01-23 20:49:04 (GMT)
commitcb01b3eec8e8524674335371c87b0d25f0c9c707 (patch)
tree7316fb31bf557fcd7828b60fd88b5548a1824ca1 /pdf
parente88fdc41fa5cec99684fdef7d7063c67a8eb917f (diff)
ignore page offset here, to make search results independent of it,
2005-01-23 Stephane LOEUILLET <stephane.loeuillet@tiscali.fr> * pdf/xpdf/pdf-document.cc (pdf_document_search_page_changed): ignore page offset here, to make search results independent of it, * shell/ev-view.c (expose_bin_window): but take offsets into account here. Bug #164932
Diffstat (limited to 'pdf')
-rw-r--r--pdf/xpdf/pdf-document.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/pdf/xpdf/pdf-document.cc b/pdf/xpdf/pdf-document.cc
index 8449752..22e7e41 100644
--- a/pdf/xpdf/pdf-document.cc
+++ b/pdf/xpdf/pdf-document.cc
@@ -484,8 +484,8 @@ pdf_document_search_page_changed (PdfDocumentSearch *search)
&xMin, &yMin, &xMax, &yMax)) {
result.page_num = pdf_document->page;
- result.highlight_area.x = xMin + pdf_document->page_x_offset;
- result.highlight_area.y = yMin + pdf_document->page_y_offset;
+ result.highlight_area.x = xMin;
+ result.highlight_area.y = yMin;
result.highlight_area.width = xMax - xMin;
result.highlight_area.height = yMax - yMin;
@@ -499,8 +499,8 @@ pdf_document_search_page_changed (PdfDocumentSearch *search)
result.page_num = pdf_document->page;
- result.highlight_area.x = xMin + pdf_document->page_x_offset;
- result.highlight_area.y = yMin + pdf_document->page_y_offset;
+ result.highlight_area.x = xMin;
+ result.highlight_area.y = yMin;
result.highlight_area.width = xMax - xMin;
result.highlight_area.height = yMax - yMin;