diff options
author | Yoann Lopes <yoann.lopes@nokia.com> | 2009-11-24 14:50:48 (GMT) |
---|---|---|
committer | Yoann Lopes <yoann.lopes@nokia.com> | 2009-11-24 14:50:48 (GMT) |
commit | bd73818849b181ac29109ed580a60e99a38bf63d (patch) | |
tree | 646f41aa345d1c7e546db3d75866cc593544ecd7 | |
parent | 1e36e3917cae1e6b55cce46dc7e0e8a0b336cd01 (diff) | |
download | Qt-bd73818849b181ac29109ed580a60e99a38bf63d.zip Qt-bd73818849b181ac29109ed580a60e99a38bf63d.tar.gz Qt-bd73818849b181ac29109ed580a60e99a38bf63d.tar.bz2 |
Fixes rendering issues when rendering a QWidget to PDF with WindowsXP Style.
The problem was that the images added to the PDF were not clipped to the expected area.
Task-number: QTBUG-3412
Reviewed-by: Trond Kjernaasen
-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 4cccc91..3d82edf 100644 --- a/src/gui/painting/qprintengine_pdf.cpp +++ b/src/gui/painting/qprintengine_pdf.cpp @@ -206,7 +206,7 @@ void QPdfEngine::drawImage(const QRectF &rectangle, const QImage &image, const Q QRect sourceRect = sr.toRect(); QImage im = sourceRect != image.rect() ? image.copy(sourceRect) : image; bool bitmap = true; - const int object = d->addImage(image, &bitmap, im.cacheKey()); + const int object = d->addImage(im, &bitmap, im.cacheKey()); if (object < 0) return; |