remove other excess devicepixelratio

Svg manages devicepixelration completely internally, multiplying any of its sizes by it makes it applied twice, therefore incorrect
This commit is contained in:
Marco Martin 2014-02-21 20:08:01 +01:00
parent 372912d53e
commit 840a77b083

View File

@ -70,10 +70,10 @@ QSizeF SvgItem::naturalSize() const
if (!m_svg) {
return QSizeF();
} else if (!m_elementID.isEmpty()) {
return m_svg.data()->elementSize(m_elementID) * floor(m_units.devicePixelRatio());
return m_svg.data()->elementSize(m_elementID);
}
return m_svg.data()->size() * floor(m_units.devicePixelRatio());
return m_svg.data()->size();
}