diff options
Diffstat (limited to 'src/location/declarativemaps/qdeclarativegeomap.cpp')
-rw-r--r-- | src/location/declarativemaps/qdeclarativegeomap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/location/declarativemaps/qdeclarativegeomap.cpp b/src/location/declarativemaps/qdeclarativegeomap.cpp index 875b8e47..9fa50794 100644 --- a/src/location/declarativemaps/qdeclarativegeomap.cpp +++ b/src/location/declarativemaps/qdeclarativegeomap.cpp @@ -1628,7 +1628,7 @@ void QDeclarativeGeoMap::clearData() void QDeclarativeGeoMap::fitViewportToGeoShape(const QGeoShape &shape, QVariant margins) { QMargins m(10, 10, 10, 10); // lets defaults to 10 if margins is invalid - switch (margins.type()) { + switch (static_cast<QMetaType::Type>(margins.type())) { case QMetaType::Int: case QMetaType::Double: { const int value = int(margins.toDouble()); |