浏览代码

wxGUI: fix attr (value containing delimiter ':')
(merge from devbr6, https://trac.osgeo.org/grass/changeset/34031)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@34032 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 16 年之前
父节点
当前提交
0aed557c99
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      gui/wxpython/gui_modules/dbm.py

+ 2 - 2
gui/wxpython/gui_modules/dbm.py

@@ -3227,13 +3227,13 @@ class VectorDBInfo(gselect.VectorDBInfo):
                 if len(item) < 1:
                     continue
                 
-                key, value = item.split(':')
+                key, value = item.split(':', 1)
                 
                 if key == 'Layer' and readAttrb:
                     readAttrb = False
                 
                 if readAttrb:
-                    name, value = item.split(':')
+                    name, value = item.split(':', 1)
                     name = name.strip()
                     # append value to the column
                     if len(value) < 1: