Fix of issue 2606.
svn: r11614
This commit is contained in:
parent
36b0181ed1
commit
2fadd11aab
@ -141,6 +141,9 @@ def conv_lat_lon(latitude, longitude, format="D.D4"):
|
|||||||
if len(l) < 2 or len(l) > 3:
|
if len(l) < 2 or len(l) > 3:
|
||||||
error = True
|
error = True
|
||||||
l[0]=l[0].strip()
|
l[0]=l[0].strip()
|
||||||
|
# if no characters before ':' nothing useful is input!
|
||||||
|
if len(l[0]) == 0:
|
||||||
|
return None
|
||||||
if l[0][0] == '-':
|
if l[0][0] == '-':
|
||||||
sign = '-'
|
sign = '-'
|
||||||
l[0]=l[0][1:]
|
l[0]=l[0][1:]
|
||||||
|
Loading…
Reference in New Issue
Block a user