[GRASS-SVN] r35391 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jan 12 22:53:48 EST 2009
Author: cmbarton
Date: 2009-01-12 22:53:48 -0500 (Mon, 12 Jan 2009)
New Revision: 35391
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/gselect.py
Log:
Fix bug which throws bogus error message when you change the map in a layer using the tree combobox.
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/gselect.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/gselect.py 2009-01-13 03:18:23 UTC (rev 35390)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/gselect.py 2009-01-13 03:53:48 UTC (rev 35391)
@@ -125,8 +125,11 @@
if not root:
return
item = self.FindItem(root, self.value[0])
- self.seltree.EnsureVisible(item)
- self.seltree.SelectItem(item)
+ try:
+ self.seltree.EnsureVisible(item)
+ self.seltree.SelectItem(item)
+ except:
+ pass
def SetStringValue(self, value):
# this assumes that item strings are unique...
More information about the grass-commit
mailing list