浏览代码

wxGUI: encode values when saving workspace with overlays (see https://trac.osgeo.org/grass/ticket/3275)

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

+ 1 - 1
gui/wxpython/core/workspace.py

@@ -1567,7 +1567,7 @@ class WriteWorkspaceFile(object):
             else:
                 self.file.write('%s<parameter name="%s">\n' % (' ' * self.indent, prm.split("=", 1)[0]))
                 self.indent += 4
-                self.file.write('%s<value>%s</value>\n' % (' ' * self.indent, prm.split("=", 1)[1]))
+                self.file.write('%s<value>%s</value>\n' % (' ' * self.indent, EncodeString(prm.split("=", 1)[1])))
                 self.indent -= 4
                 self.file.write('%s</parameter>\n' % (' ' * self.indent))
         self.indent -= 4