[poppler] poppler/qt4/src: poppler-page.cc,1.40,1.41
Albert Astals Cid
aacid at kemper.freedesktop.org
Sat Apr 28 04:35:36 PDT 2007
Update of /cvs/poppler/poppler/qt4/src
In directory kemper:/tmp/cvs-serv17525/qt4/src
Modified Files:
poppler-page.cc
Log Message:
* qt4/src/poppler-page.cc:
Hopefully fix the calculation of the image size when rendering using
ArthurOutputDev.
Index: poppler-page.cc
===================================================================
RCS file: /cvs/poppler/poppler/qt4/src/poppler-page.cc,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- poppler-page.cc 28 Apr 2007 11:16:49 -0000 1.40
+++ poppler-page.cc 28 Apr 2007 11:35:34 -0000 1.41
@@ -206,7 +206,7 @@
{
#if defined(HAVE_SPLASH)
QSize size = pageSize();
- QImage tmpimg(w == -1 ? size.width() : w, h == -1 ? size.height() : h, QImage::Format_ARGB32);
+ QImage tmpimg(w == -1 ? qRound( size.width() * xres / 72.0 ) : w, h == -1 ? qRound( size.height() * yres / 72.0 ) : h, QImage::Format_ARGB32);
QPainter painter(&tmpimg);
if (m_page->parentDoc->m_doc->m_hints & Document::Antialiasing)
More information about the poppler
mailing list