From fa5c6e254379018af7e970b592e54a69e2d6072c Mon Sep 17 00:00:00 2001 From: nickexists Date: Sun, 16 Oct 2016 15:50:43 -0500 Subject: [PATCH] Fixed a bug where a black line would be rendered when starting to draw a polygon. --- src/FlightMap/FlightMap.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/FlightMap/FlightMap.qml b/src/FlightMap/FlightMap.qml index 24a8458a8..dd7b1ed95 100644 --- a/src/FlightMap/FlightMap.qml +++ b/src/FlightMap/FlightMap.qml @@ -367,7 +367,9 @@ Map { // Update drag coordinate var polygonPath = polygonDrawerPolygon.path polygonPath[polygonDrawerPolygon.path.length - 1] = dragCoordinate - polygonDrawerPolygon.path = polygonPath + if (polygonDrawerPolygon.path.length>2){ + polygonDrawerPolygon.path = polygonPath + } } } } -- 2.22.0