Place editor, lat and long text are swapped

Fixes #012374
This commit is contained in:
SNoiraud 2021-07-28 20:05:55 +02:00 committed by Nick Hall
parent 61189d3930
commit d5b28435e0
2 changed files with 8 additions and 8 deletions

View File

@ -187,13 +187,13 @@ class EditPlace(EditPrimary):
def set_latlongitude(self, value): def set_latlongitude(self, value):
try: try:
# Bug 12349 # Bug 12349, 12374
parts = value.split(', ') parts = value.split(', ')
if len(parts) == 2: if len(parts) == 2:
longitude = parts[0].strip().replace(',', '.') latitude = parts[0].strip().replace(',', '.')
latitude = parts[1].strip().replace(',', '.') longitude = parts[1].strip().replace(',', '.')
else: else:
longitude, latitude = value.split(',') latitude, longitude = value.split(',')
self.longitude.set_text(longitude) self.longitude.set_text(longitude)
self.latitude.set_text(latitude) self.latitude.set_text(latitude)

View File

@ -180,13 +180,13 @@ class EditPlaceRef(EditReference):
def set_latlongitude(self, value): def set_latlongitude(self, value):
try: try:
# Bug 12349 # Bug 12349, 12374
parts = value.split(', ') parts = value.split(', ')
if len(parts) == 2: if len(parts) == 2:
longitude = parts[0].strip().replace(',', '.') latitude = parts[0].strip().replace(',', '.')
latitude = parts[1].strip().replace(',', '.') longitude = parts[1].strip().replace(',', '.')
else: else:
longitude, latitude = value.split(',') latitude, longitude = value.split(',')
self.longitude.set_text(longitude) self.longitude.set_text(longitude)
self.latitude.set_text(latitude) self.latitude.set_text(latitude)