make paint(painter,pos,elementid) work when containsMultipleImages =

true

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=878053
This commit is contained in:
Marco Martin 2008-10-31 09:43:51 +00:00
parent 60ab332312
commit 1da58c95f4

View File

@ -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();