From 148a524565ab69bd494bf0fcddc9c6ef7f965f1b Mon Sep 17 00:00:00 2001 From: Paolo Angelelli Date: Fri, 27 Oct 2017 13:56:25 +0200 Subject: Fix MapPolygon doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Document undefined behavior for less than 3 coordinates Task-number: QTBUG-63929 Change-Id: I3111637c625d6410e8bd58c566f54e3accadc2e3 Reviewed-by: Alex Blasche Reviewed-by: Ola Røer Thorsen Reviewed-by: Bruno de Oliveira Abinader --- src/location/declarativemaps/qdeclarativepolygonmapitem.cpp | 1 + 1 file changed, 1 insertion(+) 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 */ -- cgit v1.2.1