unbreak actualElementId

svn path=/trunk/KDE/kdelibs/; revision=1090746
This commit is contained in:
Marco Martin 2010-02-15 22:55:43 +00:00
parent de832d5e60
commit d661297dc3

View File

@ -188,12 +188,10 @@ class SvgPrivate
QPixmap findInCache(const QString &elementId, const QSizeF &s = QSizeF())
{
QSize size;
QString actualElementId;
QString actualElementId(QString("%1-%2-%3").arg(qRound(s.width())).arg( qRound(s.height())).arg(elementId));
if (elementId.isEmpty() || !q->hasElement(actualElementId)) {
actualElementId = elementId;
} else {
actualElementId = QString("%1-%2-%3").arg(qRound(s.width())).arg( qRound(s.height())).arg(elementId);
}
if (elementId.isEmpty() || (multipleImages && s.isValid())) {