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

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Oct 18 15:41:44 PDT 2016


Author: annakrat
Date: 2016-10-18 15:41:44 -0700 (Tue, 18 Oct 2016)
New Revision: 69704

Modified:
   grass/trunk/gui/wxpython/lmgr/frame.py
Log:
wxGUI: fix rendering behavior in GUI when only d.* is entered in command console without any map

Modified: grass/trunk/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/frame.py	2016-10-18 22:12:20 UTC (rev 69703)
+++ grass/trunk/gui/wxpython/lmgr/frame.py	2016-10-18 22:41:44 UTC (rev 69704)
@@ -793,9 +793,8 @@
             # add layer into layer tree
             lname, found = GetLayerNameFromCmd(command, fullyQualified=True,
                                                layerType=layertype)
-            self.GetLayerTree().AddLayer(ltype=layertype, lchecked=True,
-                                         lname=lname,
-                                         lcmd=command)
+            self.GetLayerTree().AddLayer(ltype=layertype, lchecked=True if lname else None,
+                                         lname=lname, lcmd=command)
 
     def GetLayerNotebook(self):
         """Get Layers Notebook"""



More information about the grass-commit mailing list