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:
parent
372912d53e
commit
840a77b083
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user