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
85f18c47
Commit
85f18c47
authored
Apr 18, 2017
by
Don Gagne
Browse files
Fix for invalid home coord
parent
b257d585
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/FlightMap/Widgets/MapFitFunctions.qml
View file @
85f18c47
...
...
@@ -48,7 +48,10 @@ Item {
function
fitMapViewportToAllCoordinates
(
coordList
)
{
var
mapFitViewport
=
Qt
.
rect
(
0
,
0
,
map
.
width
,
map
.
height
)
if
(
coordList
.
length
==
0
)
{
map
.
center
=
fitHomePosition
()
var
homeCoord
=
fitHomePosition
()
if
(
homeCoord
.
isValid
)
{
map
.
center
=
homeCoord
}
return
}
...
...
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