parent
6dcb1d00d5
commit
b24ebd5d77
@ -188,7 +188,7 @@ class EditPlace(EditPrimary):
|
|||||||
def set_latlongitude(self, value):
|
def set_latlongitude(self, value):
|
||||||
try:
|
try:
|
||||||
# Bug 12349
|
# Bug 12349
|
||||||
parts = value.index(', ')
|
parts = value.split(', ')
|
||||||
if len(parts) == 2:
|
if len(parts) == 2:
|
||||||
longitude = parts[0].strip().replace(',', '.')
|
longitude = parts[0].strip().replace(',', '.')
|
||||||
latitude = parts[1].strip().replace(',', '.')
|
latitude = parts[1].strip().replace(',', '.')
|
||||||
|
@ -181,7 +181,7 @@ class EditPlaceRef(EditReference):
|
|||||||
def set_latlongitude(self, value):
|
def set_latlongitude(self, value):
|
||||||
try:
|
try:
|
||||||
# Bug 12349
|
# Bug 12349
|
||||||
parts = value.index(', ')
|
parts = value.split(', ')
|
||||||
if len(parts) == 2:
|
if len(parts) == 2:
|
||||||
longitude = parts[0].strip().replace(',', '.')
|
longitude = parts[0].strip().replace(',', '.')
|
||||||
latitude = parts[1].strip().replace(',', '.')
|
latitude = parts[1].strip().replace(',', '.')
|
||||||
|
Loading…
Reference in New Issue
Block a user