summaryrefslogtreecommitdiffstats
path: root/main/epdfview/350-coordinates.patch
blob: 39fe673540e77f36a7d2acffe5599a0e0ae56fe7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: src/PDFDocument.cxx
===================================================================
--- src/PDFDocument.cxx	(revision 349)
+++ src/PDFDocument.cxx	(revision 350)
@@ -683,7 +683,7 @@
     //for get text we must exchange y coordinate, don't ask me where logic here.
     PopplerRectangle textRect = { rect->getX1() / getZoom(),
                                   (pageHeight - rect->getY2() / getZoom()),
-                                  rect->getX2() * getZoom() / getZoom(),
+                                  rect->getX2() / getZoom(),
                                   (pageHeight - rect->getY1() / getZoom())};
     repairEmpty(textRect);