瀏覽代碼

wx.vnet: column select fix

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@55842 15284696-431f-4ddb-bdfa-cd5b030d7da7
Štěpán Turek 12 年之前
父節點
當前提交
208f0241c9
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      gui/wxpython/vnet/dialogs.py

+ 1 - 2
gui/wxpython/vnet/dialogs.py

@@ -637,7 +637,6 @@ class VNETDialog(wx.Dialog):
             self.inputData['alayer'].SetValue("")
             self.inputData['nlayer'].SetValue("")
             for sel in ['afcolumn', 'abcolumn', 'ncolumn']:
-                self.inputData[sel].Clear()
                 self.inputData[sel].SetValue("")
             return
         elif itemsLen == 1:
@@ -719,7 +718,7 @@ class VNETDialog(wx.Dialog):
 
                 if not colVal:
                     continue
-                if colVal not in self.inputData[colInptF].GetItems():
+                if colVal != self.inputData[colInptF].GetValue():
                     errInput[col] = colVal
 
         return errInput