Skip to content

Commit ac7b556

Browse files
committed
fix server waypoint coordinates
1 parent 2014acf commit ac7b556

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
@@ -148,8 +148,8 @@ def __init__(self, lat=0., lon=0., flightlevel=0., location="", comments=""):
148148
self.lat = lat
149149
self.lon = lon
150150

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

0 commit comments

Comments
 (0)