From d24af505d1c857fe178f4916f0a1a267fa3ccd94 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Sun, 18 Oct 2015 13:13:35 -0700 Subject: [PATCH] Fix drag altitude bug --- src/MissionEditor/MissionEditor.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/MissionEditor/MissionEditor.qml b/src/MissionEditor/MissionEditor.qml index 10c6fb7a6..c7bb64bb3 100644 --- a/src/MissionEditor/MissionEditor.qml +++ b/src/MissionEditor/MissionEditor.qml @@ -206,7 +206,9 @@ QGCView { onDragActiveChanged: { if (!drag.active) { var point = Qt.point(itemEditor.x + (itemEditor.width / 2), itemEditor.y + (itemEditor.height / 2)) - itemEditor.missionItem.coordinate = editorMap.toCoordinate(point) + var coordinate = editorMap.toCoordinate(point) + coordinate.altitude = itemEditor.missionItem.coordinate.altitude + itemEditor.missionItem.coordinate = coordinate } } } -- 2.22.0