浏览代码

wxGUI: allow using d.text with spaces in text as command layer

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@70268 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 8 年之前
父节点
当前提交
465dd800ea
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      gui/wxpython/lmgr/layertree.py

+ 2 - 1
gui/wxpython/lmgr/layertree.py

@@ -30,6 +30,7 @@ except ImportError:
 
 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
@@ -1381,7 +1382,7 @@ class LayerTree(treemixin.DragAndDrop, CT.CustomTreeCtrl):
                 cmd = []
                 if ltype == 'command' and lname:
                     for c in lname.split(';'):
-                        cmd.append(c.split(' '))
+                        cmd.append(gutils.split(c))
 
                 name = None