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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Sep 30 13:42:01 EDT 2009


Author: cmbarton
Date: 2009-09-30 13:42:01 -0400 (Wed, 30 Sep 2009)
New Revision: 39355

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/location_wizard.py
Log:
Backport from develbranch_6 r39309 Fix a variety of selections problems with projections, datums, and transforms.

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-09-30 13:58:20 UTC (rev 39354)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/location_wizard.py	2009-09-30 17:42:01 UTC (rev 39355)
@@ -401,7 +401,7 @@
 
     def OnText(self, event):
         """Projection name changed"""
-        self.proj = event.GetString()
+        self.proj = event.GetString().lower()
         nextButton = wx.FindWindowById(wx.ID_FORWARD)
         if len(self.proj) == 0 and nextButton.IsEnabled():
             nextButton.Enable(False)
@@ -435,7 +435,7 @@
         index = event.m_itemIndex
 
         # set values
-        self.proj = self.projlist.GetItem(index, 0).GetText()
+        self.proj = self.projlist.GetItem(index, 0).GetText().lower()
         self.projdesc = self.projlist.GetItem(index, 0).GetText()
         self.tproj.SetValue(self.proj)
 
@@ -865,9 +865,9 @@
         event.Skip()
 
     def OnDText(self, event):
-        self.datum = event.GetString()
-        self.transformlist.Search(index=1, pattern=self.datum)
-        if self.transformlist.GetItemCount() > 0:
+        self.datum = event.GetString().lower()
+        tlist = self.transformlist.Search(index=1, pattern=self.datum)
+        if len(tlist) > 0:
             self.hastransform = True
         else:
             self.hastransform = False
@@ -917,7 +917,6 @@
         if str == '' or self.datum == '':
             self.transformlist.DeleteAllItems()
             self.transformlist.Refresh()
-        self.tdatum.SetValue(self.datum)
 
         event.Skip()
         
@@ -1380,7 +1379,6 @@
         try:
             self.epsgcode = self.epsglist.Search(index=self.csearch.GetSelection(),
                                                  pattern=value)[0]
-            self.tcode.SetValue(str(self.epsgcode))
         except IndexError: # -> no item found
             self.epsgcode = None
             self.tcode.SetValue('')



More information about the grass-commit mailing list