diff options
author | Trond Kjernåsen <trond@trolltech.com> | 2009-04-20 10:43:26 (GMT) |
---|---|---|
committer | Trond Kjernåsen <trond@trolltech.com> | 2009-04-20 15:55:14 (GMT) |
commit | 2964be69e1db017082236ad8756b725fb4f7d4ea (patch) | |
tree | f84930b9f5b623bfb4a30ec37ad376917de1243f /src/svg | |
parent | 30c0f2ea782239eb5165cc3f12cabc3da5b9eae0 (diff) | |
download | Qt-2964be69e1db017082236ad8756b725fb4f7d4ea.zip Qt-2964be69e1db017082236ad8756b725fb4f7d4ea.tar.gz Qt-2964be69e1db017082236ad8756b725fb4f7d4ea.tar.bz2 |
Make sure the cached SVG image node uses the premultiplied format.
Reviewed-by: Gunnar
Diffstat (limited to 'src/svg')
-rw-r--r-- | src/svg/qsvghandler.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/svg/qsvghandler.cpp b/src/svg/qsvghandler.cpp index 433a3ad..cb07c53 100644 --- a/src/svg/qsvghandler.cpp +++ b/src/svg/qsvghandler.cpp @@ -2541,6 +2541,9 @@ static QSvgNode *createImageNode(QSvgNode *parent, return 0; } + if (image.format() == QImage::Format_ARGB32) + image = image.convertToFormat(QImage::Format_ARGB32_Premultiplied); + QSvgNode *img = new QSvgImage(parent, image, QRect(int(nx), |