浏览代码

wxGUI: fix v.info syntax

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@46174 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 14 年之前
父节点
当前提交
bbeffd3169
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      gui/wxpython/gui_modules/layertree.py

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

@@ -343,8 +343,8 @@ class LayerTree(treemixin.DragAndDrop, CT.CustomTreeCtrl):
             if layer and layer.GetType() == 'vector':
                 if 'info' not in self.GetPyData(self.layer_selected)[0]:
                     info = grass.parse_command('v.info',
-                                               map = layer.GetName(),
-                                               shell = 'basic')
+                                               flags = 'g',
+                                               map = layer.GetName())
                     self.GetPyData(self.layer_selected)[0]['info'] = info
                 info = self.GetPyData(self.layer_selected)[0]['info']
                 if info and info['format'] == 'ogr,PostgreSQL':