Skip to content

Commit 79562d4

Browse files
committed
fix server waypoint coordinates
1 parent 4229b74 commit 79562d4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

mslib/msui/flighttrack.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,8 @@ def __init__(self, lat=0., lon=0., flightlevel=0., location="", comments=""):
147147
self.lat = lat
148148
self.lon = lon
149149

150-
# Only resolve location name if coordinates are not provided
151-
if (lat == 0.0 and lon == 0.0) and location:
150+
# Only resolve location name if coordinates are truly missing
151+
if (lat is None or lon is None) and location:
152152
locations = config_loader(dataset='locations')
153153
if location in locations:
154154
self.lat, self.lon = locations[location]

0 commit comments

Comments
 (0)