qmax(qreal, double) is not valid as qreal may be float
adjust the call to use qreal for both (floor() returns double) REVIEW: 118487
This commit is contained in:
parent
80195aa149
commit
ce329f4402
@ -308,7 +308,7 @@ void FrameSvgItem::updateDevicePixelRatio()
|
||||
{
|
||||
//devicepixelratio is always set integer in the svg, so needs at least 192dpi to double up.
|
||||
//(it needs to be integer to have lines contained inside a svg piece to keep being pixel aligned)
|
||||
m_frameSvg->setDevicePixelRatio(qMax((qreal)1.0, floor(m_units.devicePixelRatio())));
|
||||
m_frameSvg->setDevicePixelRatio(qMax<qreal>(1.0, floor(m_units.devicePixelRatio())));
|
||||
m_textureChanged = true;
|
||||
}
|
||||
|
||||
|
@ -216,7 +216,7 @@ void SvgItem::updateDevicePixelRatio()
|
||||
if (m_svg) {
|
||||
//devicepixelratio is always set integer in the svg, so needs at least 192dpi to double up.
|
||||
//(it needs to be integer to have lines contained inside a svg piece to keep being pixel aligned)
|
||||
m_svg.data()->setDevicePixelRatio(qMax((qreal)1.0, floor(m_units.devicePixelRatio())));
|
||||
m_svg.data()->setDevicePixelRatio(qMax<qreal>(1.0, floor(m_units.devicePixelRatio())));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user