[GRASS-SVN] r65444 - grass/trunk/gui/wxpython/lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jun 11 18:45:46 PDT 2015


Author: annakrat
Date: 2015-06-11 18:45:46 -0700 (Thu, 11 Jun 2015)
New Revision: 65444

Modified:
   grass/trunk/gui/wxpython/lmgr/frame.py
   grass/trunk/gui/wxpython/lmgr/layertree.py
Log:
wxGUI: automatically check and render d. commands entered through gui console

Modified: grass/trunk/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/frame.py	2015-06-11 21:55:16 UTC (rev 65443)
+++ grass/trunk/gui/wxpython/lmgr/frame.py	2015-06-12 01:45:46 UTC (rev 65444)
@@ -685,7 +685,7 @@
             # add layer into layer tree
             lname, found = GetLayerNameFromCmd(command, fullyQualified = True,
                                                layerType = layertype)
-            self.GetLayerTree().AddLayer(ltype = layertype,
+            self.GetLayerTree().AddLayer(ltype = layertype, lchecked=True,
                                          lname = lname,
                                          lcmd = command)
 

Modified: grass/trunk/gui/wxpython/lmgr/layertree.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/layertree.py	2015-06-11 21:55:16 UTC (rev 65443)
+++ grass/trunk/gui/wxpython/lmgr/layertree.py	2015-06-12 01:45:46 UTC (rev 65444)
@@ -1101,8 +1101,10 @@
         # use predefined value if given
         if lchecked is not None:
             checked = lchecked
+            render = True if checked else False
         else:
             checked = False
+            render = False
         
         self.forceCheck = True
         
@@ -1126,7 +1128,6 @@
         if ltype != 'group':
             if lcmd and len(lcmd) > 1:
                 cmd = lcmd
-                render = False
                 name, found = GetLayerNameFromCmd(lcmd)
             else:
                 cmd = []
@@ -1134,7 +1135,6 @@
                     for c in lname.split(';'):
                         cmd.append(c.split(' '))
                 
-                render = False
                 name = None
             
             if ctrl:



More information about the grass-commit mailing list