diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-06-20 14:57:10 +0200 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-06-21 10:53:32 +0000 |
commit | cea1590496c35a7b2732e94718410ab5350e79e3 (patch) | |
tree | 395353d00cdffdb550dae912c26b88edeb0b39d8 /src/location | |
parent | 6ae64c4172e02666ecd049b251aa70e656956da1 (diff) | |
download | qtlocation-cea1590496c35a7b2732e94718410ab5350e79e3.tar.gz |
Fix build with -qreal float
Task-number: QTBUG-61538
Change-Id: Ib1e5cbe1bdcfc324e3e9dcaca7045c9318a5059e
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/location')
-rw-r--r-- | src/location/maps/qgeoprojection.cpp | 2 |
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()); |