QTBUG-24936: Ensure alpha cache is cleared when printing to PDF.

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>
This commit is contained in:
Tarja Sundqvist 2012-03-28 13:32:10 +03:00 committed by Qt by Nokia
parent 19194f02fd
commit 8129f45e65

View File

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