use sized prefix again if the element has one

svn path=/trunk/KDE/kdelibs/; revision=1189288
This commit is contained in:
Manuel Mommertz 2010-10-24 13:42:33 +00:00
parent f519ff9a6c
commit 898db0a262

View File

@ -216,7 +216,7 @@ Theme *SvgPrivate::actualTheme()
QPixmap SvgPrivate::findInCache(const QString &elementId, const QSizeF &s)
{
QSize size;
QString actualElementId(CACHE_ID_WITH_SIZE(s, elementId));
QString actualElementId(QString::number(int(s.width())) % "-" % QString::number(int(s.height())) % "-" % elementId);
if (elementId.isEmpty() || !q->hasElement(actualElementId)) {
actualElementId = elementId;