revert #898716 as it regressed bug #167430, fix the problem by not transforming the svg in FrameSvgPrivate::updateSizes
CCBUG:167430 svn path=/trunk/KDE/kdelibs/; revision=905645
This commit is contained in:
parent
b40732d7ab
commit
35304c269d
@ -656,6 +656,8 @@ void FrameSvgPrivate::updateSizes()
|
||||
FrameData *frame = frames[prefix];
|
||||
Q_ASSERT(frame);
|
||||
|
||||
QSize s = q->size();
|
||||
q->resize();
|
||||
frame->cachedBackground = QPixmap();
|
||||
frame->cachedMask = QRegion();
|
||||
|
||||
@ -711,6 +713,7 @@ void FrameSvgPrivate::updateSizes()
|
||||
frame->tileCenter = q->hasElement("hint-tile-center");
|
||||
frame->noBorderPadding = q->hasElement("hint-no-border-padding");
|
||||
frame->stretchBorders = q->hasElement("hint-stretch-borders");
|
||||
q->resize(s);
|
||||
}
|
||||
|
||||
void FrameSvgPrivate::updateNeeded()
|
||||
|
3
svg.cpp
3
svg.cpp
@ -255,14 +255,13 @@ class SvgPrivate
|
||||
void eraseRenderer()
|
||||
{
|
||||
if (renderer && renderer.count() == 2) {
|
||||
// this and the cache reference it; and boy is this not thread safe ;)
|
||||
// this and the cache reference it
|
||||
s_renderers.erase(s_renderers.find(path));
|
||||
Plasma::Theme::defaultTheme()->releaseRectsCache(path);
|
||||
}
|
||||
|
||||
renderer = 0;
|
||||
localRectCache.clear();
|
||||
size = QSizeF();
|
||||
}
|
||||
|
||||
QRectF elementRect(const QString &elementId)
|
||||
|
Loading…
Reference in New Issue
Block a user