[poppler] qt4/src
Albert Astals Cid
aacid at kemper.freedesktop.org
Wed May 21 13:21:30 PDT 2008
qt4/src/poppler-page.cc | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
New commits:
commit 58d5b7b9ab9ac245481299c4765f3bd305580d2e
Author: Albert Astals Cid <aacid at kde.org>
Date: Wed May 21 22:18:29 2008 +0200
[Qt4] Fix text() method
I'm not sure this is the real and correct fix, but it works more than previous code so it's and improvement
diff --git a/qt4/src/poppler-page.cc b/qt4/src/poppler-page.cc
index 634e596..8448fa9 100644
--- a/qt4/src/poppler-page.cc
+++ b/qt4/src/poppler-page.cc
@@ -280,11 +280,7 @@ QString Page::text(const QRectF &r) const
}
else
{
- double height, y1, y2;
- height = m_page->page->getCropHeight();
- y1 = height - r.top();
- y2 = height - r.bottom();
- s = output_dev->getText(r.left(), y1, r.right(), y2);
+ s = output_dev->getText(r.left(), r.top(), r.right(), r.bottom());
}
result = QString::fromUtf8(s->getCString());
More information about the poppler
mailing list