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

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jun 13 05:14:22 EDT 2010


Author: martinl
Date: 2010-06-13 13:32:06 +0000 (Sun, 13 Jun 2010)
New Revision: 42548

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/wxgui_utils.py
Log:
fix #1085


Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/wxgui_utils.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/wxgui_utils.py	2010-06-13 13:09:00 UTC (rev 42547)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/wxgui_utils.py	2010-06-13 13:32:06 UTC (rev 42548)
@@ -70,7 +70,10 @@
                  CT.TR_MULTIPLE,**kargs):
         self.items = []
         self.itemCounter = 0
-        super(LayerTree, self).__init__(parent, id, pos, size, style=style, ctstyle=ctstyle)
+        if 'style' in kargs:
+            ctstyle |= kargs['style']
+            del kargs['style']
+        super(LayerTree, self).__init__(parent, id, pos, size, style = ctstyle)
         self.SetName("LayerTree")
 
         ### SetAutoLayout() causes that no vertical scrollbar is displayed



More information about the grass-commit mailing list