summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@digia.com>2014-03-24 16:08:19 +0100
committerFrederik Gladhorn <frederik.gladhorn@digia.com>2014-03-24 16:08:19 +0100
commit91055d9ba457b611208fbe31b87da5e1cd84c748 (patch)
treea5dc7805ec9275ac732be0337297bc89dabf3a00
parent7ceb56b4153650cd920faee204ef7f1bb5a4d390 (diff)
parent2fde61964d8f7300476dbde2e8e17fb5a54dbf40 (diff)
downloadqtsvg-91055d9ba457b611208fbe31b87da5e1cd84c748.tar.gz
Merge remote-tracking branch 'origin/stable' into dev
Change-Id: I5448195955ebadcbac6de7cc34ab8e40bd45ef56
-rw-r--r--src/plugins/iconengines/svgiconengine/qsvgiconengine.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/iconengines/svgiconengine/qsvgiconengine.cpp b/src/plugins/iconengines/svgiconengine/qsvgiconengine.cpp
index a8a2d15..1f47dfe 100644
--- a/src/plugins/iconengines/svgiconengine/qsvgiconengine.cpp
+++ b/src/plugins/iconengines/svgiconengine/qsvgiconengine.cpp
@@ -169,6 +169,9 @@ QPixmap QSvgIconEngine::pixmap(const QSize &size, QIcon::Mode mode,
if (!actualSize.isNull())
actualSize.scale(size, Qt::KeepAspectRatio);
+ if (actualSize.isEmpty())
+ return QPixmap();
+
QImage img(actualSize, QImage::Format_ARGB32_Premultiplied);
img.fill(0x00000000);
QPainter p(&img);