Commit 26d5fefc authored by Albert Astals Cid's avatar Albert Astals Cid

* qt4/src/poppler-page.cc:

       Hopefully fix the calculation of the image size when rendering using
       ArthurOutputDev.
parent 218364bc
......@@ -11,6 +11,12 @@
* qt4/src/poppler-annotation.h:
Make the header clean.
2007-04-28 Pino Toscano <pino@kde.org>
* qt4/src/poppler-page.cc:
Hopefully fix the calculation of the image size when rendering using
ArthurOutputDev.
2007-04-28 Pino Toscano <pino@kde.org>
* qt4/src/Makefile.am:
......
......@@ -206,7 +206,7 @@ QImage Page::renderToImage(double xres, double yres, int x, int y, int w, int h,
{
#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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment