diff options
author | Andy Shaw <andy.shaw@digia.com> | 2013-03-08 00:36:24 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-03-14 23:45:23 +0100 |
commit | 0655f907b7883b2eb3b578643ff2af581f001521 (patch) | |
tree | 3132dda8783c8283587ca948f53baa671e63f7a7 | |
parent | 901345b79bc978e8418103b51443c0609325a202 (diff) |
Clear the alphaCache when starting new painting
The alpha cache needs to be cleared when starting a new paint otherwise
it will assume that some elements already exist in the PDF when they
don't.
Change-Id: I97451c53c0c99b80a25a057735cef7b3bb830a7a
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
-rw-r--r-- | src/gui/painting/qprintengine_pdf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qprintengine_pdf.cpp b/src/gui/painting/qprintengine_pdf.cpp index b2b928f3a0..2cceedb67d 100644 --- a/src/gui/painting/qprintengine_pdf.cpp +++ b/src/gui/painting/qprintengine_pdf.cpp @@ -144,7 +144,7 @@ bool QPdfEngine::begin(QPaintDevice *pdev) d->pages.clear(); d->imageCache.clear(); - + d->alphaCache.clear(); setActive(true); state = QPrinter::Active; d->writeHeader(); |