From eb751017db6a944fce06ac4f0282f77afbd2a79c Mon Sep 17 00:00:00 2001 From: nickexists Date: Tue, 18 Oct 2016 23:24:28 -0500 Subject: [PATCH] Minor formatting fix --- src/FlightMap/FlightMap.qml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/FlightMap/FlightMap.qml b/src/FlightMap/FlightMap.qml index 3fa8af717..2d3b7f2df 100644 --- a/src/FlightMap/FlightMap.qml +++ b/src/FlightMap/FlightMap.qml @@ -345,7 +345,7 @@ Map { var clickCoordinate = _map.toCoordinate(Qt.point(mouse.x, mouse.y)) var polygonPath = polygonDrawerPolygon.path - if(polygonPath.length == 0) { + if (polygonPath.length == 0) { // Add first coordinate polygonPath.push(clickCoordinate) } else { @@ -371,8 +371,6 @@ Map { // Update drag line polygonDrawerNextPoint.path = [ polygonDrawerPolygon.path[polygonDrawerPolygon.path.length - 2], dragCoordinate ] - // Update drag coordinate - polygonPath[polygonDrawerPolygon.path.length - 1] = dragCoordinate polygonDrawerPolygon.path = polygonPath -- 2.22.0