summaryrefslogtreecommitdiff
path: root/print/epdfview/patches
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2011-02-12 14:18:35 +0000
committerdrochner <drochner@pkgsrc.org>2011-02-12 14:18:35 +0000
commit9e47778a68f0bce931be2a63a0d49e7be996af8c (patch)
tree7a3753221dd8ef1529149155ef4057b859af0266 /print/epdfview/patches
parent54621f09a48e571d08840e34b578a204292f974e (diff)
downloadpkgsrc-9e47778a68f0bce931be2a63a0d49e7be996af8c.tar.gz
make the last patch work correctly
Diffstat (limited to 'print/epdfview/patches')
-rw-r--r--print/epdfview/patches/patch-ac13
1 files changed, 11 insertions, 2 deletions
diff --git a/print/epdfview/patches/patch-ac b/print/epdfview/patches/patch-ac
index 1d9714b4734..bcc33f547e4 100644
--- a/print/epdfview/patches/patch-ac
+++ b/print/epdfview/patches/patch-ac
@@ -1,8 +1,17 @@
-$NetBSD: patch-ac,v 1.1 2011/02/12 10:00:08 tnn Exp $
+$NetBSD: patch-ac,v 1.2 2011/02/12 14:18:35 drochner Exp $
--- src/PDFDocument.cxx.orig 2009-02-28 21:00:35.000000000 +0000
+++ src/PDFDocument.cxx
-@@ -686,7 +686,7 @@ PDFDocument::setTextSelection (DocumentR
+@@ -680,13 +680,13 @@ PDFDocument::setTextSelection (DocumentR
+
+ //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(),
+- (pageHeight - rect->getY1() / getZoom())};
++ rect->getY1() / getZoom(),
++ rect->getX2() / getZoom(),
++ rect->getY2() / getZoom()};
repairEmpty(textRect);
#if defined (HAVE_POPPLER_0_6_0)