From a17ae4c484def5d84bf09ed5d278f5555887feea Mon Sep 17 00:00:00 2001 From: Serge Noiraud Date: Mon, 21 Dec 2009 00:01:32 +0000 Subject: [PATCH] GeoView : issue 3312 : erase entrybox and years interval. svn: r13868 --- src/plugins/view/geoview.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/plugins/view/geoview.py b/src/plugins/view/geoview.py index 8532a7dce..6f9d141ff 100644 --- a/src/plugins/view/geoview.py +++ b/src/plugins/view/geoview.py @@ -500,7 +500,7 @@ class GeoView(HtmlView): entry[1]) # Need to wait the page is loaded to show the markers. gobject.timeout_add(1600, self._show_selected_places) - self._erase_placebox_selection() + #self._erase_placebox_selection() return def _show_place_info_bubble(self, marker_index): @@ -1047,15 +1047,10 @@ class GeoView(HtmlView): self.maxyear = 2100 if self.minyear == 9999: self.minyear = 1500 - period = (self.maxyear-self.minyear) - intvl = (period/self.maxbut) - modulo = intvl - ( intvl % 10 ) - if modulo == 0: - modulo = 10 self.minyear -= self.minyear % 10 self.maxyear -= ( self.maxyear % 10 ) + 10 - self.yearint = ( self.maxyear - self.minyear ) / ( self.maxbut - 1 ) - self.yearint -= ( self.yearint % modulo ) + self.yearint = 10 + ( self.maxyear - self.minyear ) / ( self.maxbut - 1 ) + self.yearint -= ( self.yearint % 10 ) if self.yearint == 0: self.yearint = 10 self.mapview.write("