From c8f06d4038af31bb8285fac83a848b307a9f63bb Mon Sep 17 00:00:00 2001 From: Serge Noiraud Date: Thu, 28 Apr 2011 09:59:07 +0000 Subject: [PATCH] geography : animate : sometimes, the last marker is not animated. svn: r17315 --- src/plugins/view/geoperson.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/plugins/view/geoperson.py b/src/plugins/view/geoperson.py index a56e4eac7..ee088dcf1 100644 --- a/src/plugins/view/geoperson.py +++ b/src/plugins/view/geoperson.py @@ -223,9 +223,6 @@ class GeoPerson(GeoGraphyView): stepyear = 1 if stepyear < 1 else stepyear startlat += ( latstep * stepyear ) startlon += ( lonstep * stepyear ) - if ( int(startyear) + stepyear ) > int(endmov) : - self.already_started = False - return False self.osm.gps_add(startlat, startlon, heading) stepyear += 1 difflat = round(( startlat - endlat ) if startlat > endlat else \ @@ -234,9 +231,6 @@ class GeoPerson(GeoGraphyView): ( endlon - startlon ), 8) if ( difflat == 0.0 and difflon == 0.0 ): i += 1 - if ( int(startyear) + stepyear ) > int(endmov) : - self.already_started = False - return False stepyear = 1 # 100ms => 1s per 10 years. # For a 100 years person, it takes 10 secondes.