geography : typo problem.

svn: r17373
This commit is contained in:
Serge Noiraud 2011-05-02 11:09:10 +00:00
parent 7015d93770
commit 8d883f26e5

View File

@ -347,10 +347,10 @@ class GeoGraphyView(osmGpsMap, NavigationView):
_LOG.debug("compare longitude : %s with %s (precision = %s)"
" zoom=%d" % (float(mark[4]), lon, precision,
config.get("geography.zoom")))
if (float(mlatp) >= (float(latp) - shift) ) and
if (float(mlatp) >= (float(latp) - shift) ) and \
(float(mlatp) <= (float(latp) + shift) ):
latok = True
if (float(mlonp) >= (float(lonp) - shift) ) and
if (float(mlonp) >= (float(lonp) - shift) ) and \
(float(mlonp) <= (float(lonp) + shift) ):
lonok = True
if latok and lonok: