From 6bc54fc4b531e9cfeaa04296b4986ffb0f82dd3d Mon Sep 17 00:00:00 2001 From: Paolo Angelelli Date: Thu, 30 Mar 2017 17:25:43 +0200 Subject: Fix for camera data not updated in changeActiveMapType This patch forces a camera data update upon changeActiveMapType, which may change the tile size. Change-Id: Ib371ea7f76267bc4ed8a30eed31ec3887b4a1415 Reviewed-by: Alex Blasche --- src/location/maps/qgeotiledmap.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/location/maps/qgeotiledmap.cpp b/src/location/maps/qgeotiledmap.cpp index 85931efd..dbfe45ea 100644 --- a/src/location/maps/qgeotiledmap.cpp +++ b/src/location/maps/qgeotiledmap.cpp @@ -340,7 +340,8 @@ void QGeoTiledMapPrivate::changeActiveMapType(const QGeoMapType mapType) m_mapScene->setTileSize(m_cameraCapabilities.tileSize()); m_visibleTiles->setMapType(mapType); m_prefetchTiles->setMapType(mapType); - updateScene(); + changeCameraData(m_cameraData); // Updates the zoom level to the possibly new tile size + // updateScene called in changeCameraData() } void QGeoTiledMapPrivate::changeTileVersion(int version) -- cgit v1.2.3