Procházet zdrojové kódy

wxGUI/forms: fix copying command containing spaces
(merge https://trac.osgeo.org/grass/changeset/59920 from trunk)


git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@59923 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa před 11 roky
rodič
revize
6b4bdba34d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      gui/wxpython/gui_core/forms.py

+ 1 - 1
gui/wxpython/gui_core/forms.py

@@ -734,7 +734,7 @@ class TaskFrame(wx.Frame):
         # TODO: better protect whitespace with quotes
         for i in range(1, len(cmdlist)):
             if ' ' in cmdlist[i]:
-                optname, val =  cmdlist[i].split("=")
+                optname, val =  cmdlist[i].split("=", 1)
                 cmdlist[i] = '%s="%s"' % (optname, val)
         cmdstring = ' '.join(cmdlist)
         cmddata.SetText(cmdstring)