diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2019-01-05 22:05:59 +0100 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2019-01-07 11:24:38 +0000 |
commit | c134f72060607be6caa622200c8930211a6e7e91 (patch) | |
tree | 8e52c93d2673051f74c1143ff26847823305a25e /src/location/declarativemaps/qdeclarativepolygonmapitem.cpp | |
parent | a281a648b318bfbfb5ae90e8b018ace6027ccf63 (diff) | |
download | qtlocation-c134f72060607be6caa622200c8930211a6e7e91.tar.gz |
Fix using the wrong type in MapPolygon setGeoShape
This patch fixes a bug introduced in
e7bb8f636086c04acd97e4eb3c42e7c6c05dc8f2 where the wrong type is used
in QDeclarativePolygonMapItem::setGeoShape
Change-Id: Ic5206bec4d499759f23abe8749c05d3df11f5ede
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/location/declarativemaps/qdeclarativepolygonmapitem.cpp')
-rw-r--r-- | src/location/declarativemaps/qdeclarativepolygonmapitem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/location/declarativemaps/qdeclarativepolygonmapitem.cpp b/src/location/declarativemaps/qdeclarativepolygonmapitem.cpp index 23ea5666..25357089 100644 --- a/src/location/declarativemaps/qdeclarativepolygonmapitem.cpp +++ b/src/location/declarativemaps/qdeclarativepolygonmapitem.cpp @@ -613,7 +613,7 @@ void QDeclarativePolygonMapItem::setGeoShape(const QGeoShape &shape) if (shape == geopath_) return; - geopath_ = QGeoPathEager(shape); + geopath_ = QGeoPolygonEager(shape); regenerateCache(); geometry_.setPreserveGeometry(true, geopath_.boundingGeoRectangle().topLeft()); borderGeometry_.setPreserveGeometry(true, geopath_.boundingGeoRectangle().topLeft()); |