diff --git a/src/FlightMap/FlightMap.qml b/src/FlightMap/FlightMap.qml index 24a8458a801644624c771501034e466d60ea39bf..dd7b1ed9541712805dac8220f620139c328256cc 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 + } } } }