diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-10-27 13:56:25 +0200 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2017-11-03 10:37:41 +0000 |
commit | 148a524565ab69bd494bf0fcddc9c6ef7f965f1b (patch) | |
tree | 18e4a8996be55c84012c2970253e258d970025b5 /src/location | |
parent | b187e609c152509c30e863ac4662d9a606a53865 (diff) | |
download | qtlocation-148a524565ab69bd494bf0fcddc9c6ef7f965f1b.tar.gz |
Fix MapPolygon doc
Document undefined behavior for less than 3 coordinates
Task-number: QTBUG-63929
Change-Id: I3111637c625d6410e8bd58c566f54e3accadc2e3
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Reviewed-by: Ola Røer Thorsen <ola@silentwings.no>
Reviewed-by: Bruno de Oliveira Abinader <brunoabinader@gmail.com>
Diffstat (limited to 'src/location')
-rw-r--r-- | src/location/declarativemaps/qdeclarativepolygonmapitem.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/location/declarativemaps/qdeclarativepolygonmapitem.cpp b/src/location/declarativemaps/qdeclarativepolygonmapitem.cpp index b481c64e..7460a376 100644 --- a/src/location/declarativemaps/qdeclarativepolygonmapitem.cpp +++ b/src/location/declarativemaps/qdeclarativepolygonmapitem.cpp @@ -374,6 +374,7 @@ void QDeclarativePolygonMapItem::setMap(QDeclarativeGeoMap *quickMap, QGeoMap *m This property holds the ordered list of coordinates which define the polygon. + Having less than 3 different coordinates in the path results in undefined behavior. \sa addCoordinate, removeCoordinate */ |