QTBUG-24936: Ensure alpha cache is cleared when printing to PDF.
authorTarja Sundqvist <tarja.sundqvist@digia.com>
Wed, 28 Mar 2012 10:32:10 +0000 (13:32 +0300)
committerQt by Nokia <qt-info@nokia.com>
Mon, 2 Apr 2012 12:52:48 +0000 (14:52 +0200)
Added 'd->alphaCache.clear();' to qtbase/src/gui/painting/qpdf.cpp since
also the alpha cache needs to cleared when printing to PDF.

Task-number: QTBUG-24936
Change-Id: I12c41a98f4bd54c154fa47acebe0421e9a38a3ec
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/gui/painting/qpdf.cpp

index 843551d..cfa0a28 100644 (file)
@@ -1524,6 +1524,7 @@ bool QPdfEngine::begin(QPaintDevice *pdev)
 
     d->pages.clear();
     d->imageCache.clear();
+    d->alphaCache.clear();
 
     setActive(true);
     d->writeHeader();