Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf
diff options
context:
space:
mode:
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;