diff --git a/src/FlightMap/Widgets/MapFitFunctions.qml b/src/FlightMap/Widgets/MapFitFunctions.qml index b8197994f988a8b5afd1be00bff0c015b17059b5..64e360565098d16a544183e96b917e83aa2a24e5 100644 --- a/src/FlightMap/Widgets/MapFitFunctions.qml +++ b/src/FlightMap/Widgets/MapFitFunctions.qml @@ -64,7 +64,7 @@ Item { for (var i = 1; i < coordList.length; i++) { var lat = coordList[i].latitude var lon = coordList[i].longitude - if (isNaN(lat) || lat == 0 || isNan(lon) || lon == 0) { + if (isNaN(lat) || lat == 0 || isNaN(lon) || lon == 0) { // Be careful of invalid coords which can happen when items are not yet complete continue }