Put compose over border onto the slow path that renders the entire item

This commit is contained in:
David Edmundson 2014-07-17 19:32:17 +02:00
parent 09e23eb675
commit 2bf3466b53

View File

@ -305,6 +305,11 @@ void FrameSvgItem::geometryChanged(const QRectF &newGeometry,
void FrameSvgItem::doUpdate()
{
FrameData *frame = frameData();
if (!frame) {
return;
}
if (implicitWidth() <= 0) {
setImplicitWidth(m_frameSvg->marginSize(Plasma::Types::LeftMargin) + m_frameSvg->marginSize(Plasma::Types::RightMargin));
}
@ -314,7 +319,7 @@ void FrameSvgItem::doUpdate()
}
bool hasOverlay = !actualPrefix().startsWith(QLatin1String("mask-")) && m_frameSvg->hasElement(actualPrefix() % "overlay");
m_fastPath = !hasOverlay;
m_fastPath = !hasOverlay && !frame->composeOverBorder;
m_textureChanged = true;
update();
}