Fix of issue 2606.

svn: r11610
This commit is contained in:
Peter Landgren 2009-01-11 08:46:17 +00:00
parent a964f7983b
commit 99357fdd0e

View File

@ -141,6 +141,9 @@ def conv_lat_lon(latitude, longitude, format="D.D4"):
if len(l) < 2 or len(l) > 3:
error = True
l[0]=l[0].strip()
# if no characters to the left of ':', nothing useful is input
if len(l[0]) == 0:
return None
if l[0][0] == '-':
sign = '-'
l[0]=l[0][1:]