device pixel ratio applied before generating svg

Change-Id: I22bc343894716cbbebabd5c0633889890ce1da9e
CCBUG:345155
This commit is contained in:
Marco Martin 2015-03-25 12:07:41 +01:00
parent 8bebf82fbf
commit 3516c04006

View File

@ -279,9 +279,9 @@ void FrameSvgItem::setImagePath(const QString &path)
return;
}
updateDevicePixelRatio();
m_frameSvg->setImagePath(path);
m_frameSvg->setElementPrefix(m_prefix);
updateDevicePixelRatio();
if (implicitWidth() <= 0) {
setImplicitWidth(m_frameSvg->marginSize(Plasma::Types::LeftMargin) + m_frameSvg->marginSize(Plasma::Types::RightMargin));