parent
61189d3930
commit
d5b28435e0
@ -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)
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user