From c78af3434956645b68dd13ab6b8a945239c5782c Mon Sep 17 00:00:00 2001 From: Paolo Angelelli Date: Tue, 16 Aug 2016 16:17:44 +0200 Subject: Fix for wrong map center at startup in mapviewer example This patches fixes an incorrect behavior (that is also a regression) introduced as a side effect of the no gray bands patch in the map viewer example Task-number: QTBUG-55085 Change-Id: I2078ba72e1d1588357bb2002d0c8e38b2f59253c Reviewed-by: Alex Blasche --- examples/location/mapviewer/map/MapComponent.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/location/mapviewer/map/MapComponent.qml b/examples/location/mapviewer/map/MapComponent.qml index d2d526d1..008a4a00 100644 --- a/examples/location/mapviewer/map/MapComponent.qml +++ b/examples/location/mapviewer/map/MapComponent.qml @@ -377,7 +377,8 @@ Map { orientation : Qt.Vertical value: map.zoomLevel onValueChanged: { - map.zoomLevel = value + if (value >= 0) + map.zoomLevel = value } } -- cgit v1.2.1