summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2017-06-20 14:57:10 +0200
committerPaolo Angelelli <paolo.angelelli@qt.io>2017-06-21 10:53:32 +0000
commitcea1590496c35a7b2732e94718410ab5350e79e3 (patch)
tree395353d00cdffdb550dae912c26b88edeb0b39d8
parent6ae64c4172e02666ecd049b251aa70e656956da1 (diff)
downloadqtlocation-cea1590496c35a7b2732e94718410ab5350e79e3.tar.gz
Fix build with -qreal float
Task-number: QTBUG-61538 Change-Id: Ib1e5cbe1bdcfc324e3e9dcaca7045c9318a5059e Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r--src/location/maps/qgeoprojection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/location/maps/qgeoprojection.cpp b/src/location/maps/qgeoprojection.cpp
index 319bf906..783193ed 100644
--- a/src/location/maps/qgeoprojection.cpp
+++ b/src/location/maps/qgeoprojection.cpp
@@ -254,7 +254,7 @@ QGeoCoordinate QGeoProjectionWebMercator::wrappedMapProjectionToGeo(const QDoubl
return mapProjectionToGeo(unwrapMapProjection(wrappedProjection));
}
-QMatrix4x4 QGeoProjectionWebMercator::quickItemTransformation(const QGeoCoordinate &coordinate, const QPointF &anchorPoint, double zoomLevel) const
+QMatrix4x4 QGeoProjectionWebMercator::quickItemTransformation(const QGeoCoordinate &coordinate, const QPointF &anchorPoint, qreal zoomLevel) const
{
const QDoubleVector2D coordWrapped = geoToWrappedMapProjection(coordinate);
double scale = std::pow(0.5, zoomLevel - m_cameraData.zoomLevel());