summaryrefslogtreecommitdiff
path: root/src/imports/location/qdeclarativegeomap.cpp
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@qt.io>2016-11-02 13:14:00 +0100
committerAlex Blasche <alexander.blasche@qt.io>2016-11-02 13:14:06 +0100
commit1c0b494ae0d780230e2ed410ef74353dc1a2ea77 (patch)
treededac7c676ebd9dafdfc2879e5a330e4f69ba367 /src/imports/location/qdeclarativegeomap.cpp
parent315b4325d0b55d1104d1615fa6f7ecc12465f8f2 (diff)
parent16423f84f970d7dac644a4b041e3ebe2ac0f6e22 (diff)
downloadqtlocation-1c0b494ae0d780230e2ed410ef74353dc1a2ea77.tar.gz
Merge remote-tracking branch 'gerrit/5.7' into 5.8
Conflicts: tests/auto/declarative_ui/BLACKLIST Change-Id: I0f6c9228c899c4d1d55fffc596c661ee0f6c2b66
Diffstat (limited to 'src/imports/location/qdeclarativegeomap.cpp')
-rw-r--r--src/imports/location/qdeclarativegeomap.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/imports/location/qdeclarativegeomap.cpp b/src/imports/location/qdeclarativegeomap.cpp
index e311d77f..0f54929b 100644
--- a/src/imports/location/qdeclarativegeomap.cpp
+++ b/src/imports/location/qdeclarativegeomap.cpp
@@ -967,8 +967,7 @@ void QDeclarativeGeoMap::fitViewportToGeoShape()
bboxHeight / (height() - margins));
// fixme: use log2 with c++11
zoomRatio = std::log(zoomRatio) / std::log(2.0);
- double newZoom = qMax(minimumZoomLevel(), zoomLevel()
- - zoomRatio);
+ double newZoom = qMax<double>(minimumZoomLevel(), zoomLevel() - zoomRatio);
setZoomLevel(newZoom);
m_validRegion = true;
}