[GRASS-SVN] r55116 - grass/branches/releasebranch_6_4/gui/wxpython/gui_core

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Feb 18 07:45:29 PST 2013


Author: annakrat
Date: 2013-02-18 07:45:29 -0800 (Mon, 18 Feb 2013)
New Revision: 55116

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_core/gselect.py
Log:
wxGUI/forms: set default layer instead of -1

Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_core/gselect.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_core/gselect.py	2013-02-18 13:14:49 UTC (rev 55115)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_core/gselect.py	2013-02-18 15:45:29 UTC (rev 55116)
@@ -703,8 +703,8 @@
         """!Reset value"""
         items = self.GetItems()
         if items:
-            if '-1' in items:
-                self.SetStringSelection('-1')
+            if self.default:
+                self.SetStringSelection(str(self.default))
             else:
                 self.SetSelection(0)
         else:



More information about the grass-commit mailing list