diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/location/mapviewer/map/MapComponent.qml | 3 |
1 files changed, 2 insertions, 1 deletions
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 } } |