Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
d24af505
Commit
d24af505
authored
Oct 18, 2015
by
Don Gagne
Browse files
Fix drag altitude bug
parent
a8a30ba1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/MissionEditor/MissionEditor.qml
View file @
d24af505
...
...
@@ -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
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment