diff options
author | drochner <drochner@pkgsrc.org> | 2011-02-12 14:18:35 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2011-02-12 14:18:35 +0000 |
commit | 9e47778a68f0bce931be2a63a0d49e7be996af8c (patch) | |
tree | 7a3753221dd8ef1529149155ef4057b859af0266 /print/epdfview/patches | |
parent | 54621f09a48e571d08840e34b578a204292f974e (diff) | |
download | pkgsrc-9e47778a68f0bce931be2a63a0d49e7be996af8c.tar.gz |
make the last patch work correctly
Diffstat (limited to 'print/epdfview/patches')
-rw-r--r-- | print/epdfview/patches/patch-ac | 13 |
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) |