[GRASS-SVN] r69705 - grass/branches/releasebranch_7_2/gui/wxpython/lmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Oct 18 15:42:57 PDT 2016


Author: annakrat
Date: 2016-10-18 15:42:57 -0700 (Tue, 18 Oct 2016)
New Revision: 69705

Modified:
   grass/branches/releasebranch_7_2/gui/wxpython/lmgr/frame.py
Log:
wxGUI: fix rendering behavior in GUI when only d.* is entered in command console without any map (merge from trunk, r69704)

Modified: grass/branches/releasebranch_7_2/gui/wxpython/lmgr/frame.py
===================================================================
--- grass/branches/releasebranch_7_2/gui/wxpython/lmgr/frame.py	2016-10-18 22:41:44 UTC (rev 69704)
+++ grass/branches/releasebranch_7_2/gui/wxpython/lmgr/frame.py	2016-10-18 22:42:57 UTC (rev 69705)
@@ -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