[GRASS-SVN] r40015 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Dec 15 06:04:45 EST 2009


Author: hamish
Date: 2009-12-15 06:04:45 -0500 (Tue, 15 Dec 2009)
New Revision: 40015

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/location_wizard.py
Log:
utm zones start with 1 (merge from devbr6)

Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/location_wizard.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/location_wizard.py	2009-12-15 11:00:24 UTC (rev 40014)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/location_wizard.py	2009-12-15 11:04:45 UTC (rev 40015)
@@ -728,11 +728,11 @@
         val = event.GetString()
         if self.ptype[num] == 'zone':
             if val.isdigit():
-                if int(val) < 0: self.pentry[num].SetValue(0)
+                if int(val) < 1: self.pentry[num].SetValue(1)
                 if int(val) > 60: self.pentry[num].SetValue(60)
             else: 
-                self.pentry[num].SetValue(0)
-            
+                self.pentry[num].SetValue(1)
+
         self.pval[num] = val
         
         event.Skip()
@@ -800,7 +800,7 @@
                 if self.ptype[num] == 'bool': self.pval[num] = 'No'
                 elif self.ptype[num] == 'zone': 
                     self.pval[num] = '30' 
-                    self.pdesc[num] += ' (0-60)'
+                    self.pdesc[num] += ' (1-60)'
                 else: self.pval[num] = paramgrp[2]
 
                 label = wx.StaticText(self.panel, id=1000+num, label=self.pdesc[num], 
@@ -815,7 +815,7 @@
                                                    value='30',
                                                    size=(100,-1), 
                                                    style=wx.SP_ARROW_KEYS | wx.SP_WRAP,
-                                                   min=0, max=60, initial=30)  
+                                                   min=1, max=60, initial=30)  
                     self.pentry[num].SetValue(int(self.pval[num]))
                     self.Bind(wx.EVT_TEXT, self.OnParamEntry)
                 else:



More information about the grass-commit mailing list