qt4/src/poppler-page.cc | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
New commits:
commit 0ad4803d1a85ec113b657ee4dd13ef8f460ff1a8
Author: Albert Astals Cid <[EMAIL PROTECTED]>
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 478845d..429702f 100644
--- a/qt4/src/poppler-page.cc
+++ b/qt4/src/poppler-page.cc
@@ -272,11 +272,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());
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler