[GRASS-SVN] r39357 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Sep 30 13:46:01 EDT 2009
Author: cmbarton
Date: 2009-09-30 13:46:01 -0400 (Wed, 30 Sep 2009)
New Revision: 39357
Modified:
grass/trunk/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/trunk/gui/wxpython/gui_modules/location_wizard.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/location_wizard.py 2009-09-30 17:43:40 UTC (rev 39356)
+++ grass/trunk/gui/wxpython/gui_modules/location_wizard.py 2009-09-30 17:46:01 UTC (rev 39357)
@@ -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()
More information about the grass-commit
mailing list