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

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Jan 5 13:20:18 PST 2017


Author: annakrat
Date: 2017-01-05 13:20:18 -0800 (Thu, 05 Jan 2017)
New Revision: 70269

Modified:
   grass/branches/releasebranch_7_2/gui/wxpython/lmgr/layertree.py
Log:
wxGUI: allow using d.text with spaces in text as command layer (merge from trunk, r70268)

Modified: grass/branches/releasebranch_7_2/gui/wxpython/lmgr/layertree.py
===================================================================
--- grass/branches/releasebranch_7_2/gui/wxpython/lmgr/layertree.py	2017-01-05 21:19:11 UTC (rev 70268)
+++ grass/branches/releasebranch_7_2/gui/wxpython/lmgr/layertree.py	2017-01-05 21:20:18 UTC (rev 70269)
@@ -30,6 +30,7 @@
 
 from grass.script import core as grass
 from grass.script import vector as gvector
+from grass.script import utils as gutils
 
 from core import globalvar
 from gui_core.dialogs import SqlQueryFrame, SetOpacityDialog, TextEntryDialog
@@ -1383,7 +1384,7 @@
                 cmd = []
                 if ltype == 'command' and lname:
                     for c in lname.split(';'):
-                        cmd.append(c.split(' '))
+                        cmd.append(gutils.split(c))
 
                 name = None
 



More information about the grass-commit mailing list