qt4/src/poppler-page.cc |    2 --
 1 file changed, 2 deletions(-)

New commits:
commit 866bcc7edb47fe11355081045e2d316a4d530649
Author: Pino Toscano <[email protected]>
Date:   Thu Mar 4 14:19:50 2010 +0100

    [Qt4] no need to save&restore on a newly created painter

diff --git a/qt4/src/poppler-page.cc b/qt4/src/poppler-page.cc
index 2a3e48c..5a90a4b 100644
--- a/qt4/src/poppler-page.cc
+++ b/qt4/src/poppler-page.cc
@@ -250,7 +250,6 @@ QImage Page::renderToImage(double xres, double yres, int x, 
int y, int w, int h,
           painter.setRenderHint(QPainter::Antialiasing);
       if (m_page->parentDoc->m_hints & Document::TextAntialiasing)
           painter.setRenderHint(QPainter::TextAntialiasing);
-      painter.save();
       painter.translate(x == -1 ? 0 : -x, y == -1 ? 0 : -y);
       ArthurOutputDev arthur_output(&painter);
       arthur_output.startDoc(m_page->parentDoc->doc->getXRef());
@@ -266,7 +265,6 @@ QImage Page::renderToImage(double xres, double yres, int x, 
int y, int w, int h,
                                                 y,
                                                 w,
                                                 h);
-      painter.restore();
       painter.end();
       img = tmpimg;
       break;
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to