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
2968b6a2
Unverified
Commit
2968b6a2
authored
Oct 20, 2020
by
Don Gagne
Committed by
GitHub
Oct 20, 2020
Browse files
Fix circular polyons (#9132)
parent
4dcd0767
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/MissionManager/QGCMapPolygonVisuals.qml
View file @
2968b6a2
...
...
@@ -145,7 +145,7 @@ Item {
var
width
=
initialVertices
[
0
].
distanceTo
(
initialVertices
[
1
])
var
height
=
initialVertices
[
1
].
distanceTo
(
initialVertices
[
2
])
var
radius
=
Math
.
min
(
width
,
height
)
/
2
var
center
=
initialVertices
[
4
]
var
center
=
initialVertices
[
0
].
atDistanceAndAzimuth
(
width
/
2
,
90
).
atDistanceAndAzimuth
(
height
/
2
,
180
)
_createCircularPolygon
(
center
,
radius
)
}
...
...
src/MissionManager/TransectStyleComplexItem.cc
View file @
2968b6a2
...
...
@@ -628,7 +628,7 @@ TransectStyleComplexItem::ReadyForSaveState TransectStyleComplexItem::readyForSa
terrainReady
=
true
;
}
bool
polygonNotReady
=
!
_surveyAreaPolygon
.
isValid
();
qDebug
()
<<
polygonNotReady
<<
_wizardMode
<<
terrainReady
;
//
qDebug() << polygonNotReady << _wizardMode << terrainReady;
return
(
polygonNotReady
||
_wizardMode
)
?
NotReadyForSaveData
:
(
terrainReady
?
ReadyForSave
:
NotReadyForSaveTerrain
);
...
...
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