From 1da58c95f408bb83d7011948f6db5218540f76d0 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 31 Oct 2008 09:43:51 +0000 Subject: [PATCH] make paint(painter,pos,elementid) work when containsMultipleImages = true svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=878053 --- svg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svg.cpp b/svg.cpp index 3a50a4c66..7c88c6ed7 100644 --- a/svg.cpp +++ b/svg.cpp @@ -138,7 +138,7 @@ class SvgPrivate QPixmap findInCache(const QString &elementId, const QSizeF &s = QSizeF()) { QSize size; - if (elementId.isEmpty() || multipleImages) { + if (elementId.isEmpty() || (multipleImages && s.isValid())) { size = s.toSize(); } else { size = elementRect(elementId).size().toSize();