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:
parent
ff8af18497
commit
e166600984
8
svg.cpp
8
svg.cpp
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user