last commit was indeed correct but the whole thing still a bit wrong..

the other  problem was that cachePath() did take the wrong size, the size
of the whole svg vs the size of the element to be drawn (and that was my
bad, so we can share the misery now, aaron:)

CCBUG:177172

svn path=/trunk/KDE/kdelibs/; revision=894713
This commit is contained in:
Marco Martin 2008-12-09 09:03:12 +00:00
parent ff8af18497
commit e166600984

View File

@ -93,10 +93,10 @@ class SvgPrivate
}
//This function is meant for the pixmap cache
QString cachePath(const QString &path)
QString cachePath(const QString &path, const QSize &size)
{
return QString("%3_%2_%1_").arg(int(size.width()))
.arg(int(size.height()))
return QString("%3_%2_%1_").arg(int(size.height()))
.arg(int(size.width()))
.arg(path);
}
@ -159,7 +159,7 @@ class SvgPrivate
return QPixmap();
}
QString id = cachePath(path);
QString id = cachePath(path, size);
if (!elementId.isEmpty()) {
id.append(elementId);