Commit 85f18c47 authored by Don Gagne's avatar Don Gagne

Fix for invalid home coord

parent b257d585
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment