summaryrefslogtreecommitdiff
path: root/src/location
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2017-05-19 15:56:59 +0200
committerPaolo Angelelli <paolo.angelelli@qt.io>2017-05-23 09:48:46 +0000
commitff5e2618d98cc547ebb2e4ff24e2ab5bb97f8168 (patch)
tree1bae8c9a695161ec610511931f7d78b7e1768878 /src/location
parent5ff41c101f66d0790df21f0bebf1626f8c14ffae (diff)
downloadqtlocation-ff5e2618d98cc547ebb2e4ff24e2ab5bb97f8168.tar.gz
Fix incorrect condition in QDeclarativeGeoMap::geometryChanged()
isEmpty should be used instead of !isValid, as 0,0 is a condition to skip as well. Change-Id: Ibbfa03b5a09fd0adf4b143d21674870301459f45 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/location')
-rw-r--r--src/location/declarativemaps/qdeclarativegeomap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/location/declarativemaps/qdeclarativegeomap.cpp b/src/location/declarativemaps/qdeclarativegeomap.cpp
index 2c699aa6..45d84470 100644
--- a/src/location/declarativemaps/qdeclarativegeomap.cpp
+++ b/src/location/declarativemaps/qdeclarativegeomap.cpp
@@ -1924,7 +1924,7 @@ void QDeclarativeGeoMap::geometryChanged(const QRectF &newGeometry, const QRectF
m_gestureArea->setSize(newGeometry.size());
QQuickItem::geometryChanged(newGeometry, oldGeometry);
- if (!m_map || !newGeometry.size().isValid())
+ if (!m_map || newGeometry.size().isEmpty())
return;
m_map->setViewportSize(newGeometry.size().toSize());