Fix: qMin/qMax want both arguments to be qreal (or rather float on ARM)

parent caf79324
......@@ -240,8 +240,8 @@ void GeoDataLatLonBox::scale(qreal verticalFactor, qreal horizontalFactor) const
GeoDataCoordinates const middle = center();
qreal const deltaY = 0.5 * height() * verticalFactor;
qreal const deltaX = 0.5 * width() * horizontalFactor;
d->m_north = qMin((middle.latitude() + deltaY), M_PI/2);
d->m_south = qMax((middle.latitude() - deltaY), -M_PI/2);
d->m_north = qMin((middle.latitude() + deltaY), static_cast<qreal>(M_PI/2));
d->m_south = qMax((middle.latitude() - deltaY), static_cast<qreal>(-M_PI/2));
if (deltaX > 180 * DEG2RAD) {
d->m_east = M_PI;
d->m_west = -M_PI;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment