[GRASS-SVN] r51722 - grass/branches/releasebranch_6_4/gui/wxpython/dbmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Thu May 24 13:22:00 EDT 2012


Author: martinl
Date: 2012-05-24 10:21:59 -0700 (Thu, 24 May 2012)
New Revision: 51722

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/dbmgr/manager.py
Log:
wxGUI: use keys instead (see r51719)
       (merge r51721 from devbr6)


Modified: grass/branches/releasebranch_6_4/gui/wxpython/dbmgr/manager.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/dbmgr/manager.py	2012-05-24 17:20:32 UTC (rev 51721)
+++ grass/branches/releasebranch_6_4/gui/wxpython/dbmgr/manager.py	2012-05-24 17:21:59 UTC (rev 51722)
@@ -2504,7 +2504,7 @@
                 row += 1
                 continue
 
-            if label.GetLabel() == "Layer:":
+            if key == 'layer':
                 style = wx.ALIGN_CENTER_VERTICAL | wx.ALIGN_LEFT
             else:
                 style = wx.ALIGN_CENTER_VERTICAL | wx.EXPAND
@@ -2739,7 +2739,7 @@
             label, value = self.modifyLayerWidgets[key]
             dataSizer.Add(item = label,
                           flag = wx.ALIGN_CENTER_VERTICAL)
-            if label.GetLabel() == "Layer:":
+            if key == 'layer':
                 dataSizer.Add(item = value,
                               flag = wx.ALIGN_CENTER_VERTICAL | wx.ALIGN_LEFT)
             else:



More information about the grass-commit mailing list