Sfoglia il codice sorgente

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 anni fa
parent
commit
208f0241c9
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  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['alayer'].SetValue("")
             self.inputData['nlayer'].SetValue("")
             self.inputData['nlayer'].SetValue("")
             for sel in ['afcolumn', 'abcolumn', 'ncolumn']:
             for sel in ['afcolumn', 'abcolumn', 'ncolumn']:
-                self.inputData[sel].Clear()
                 self.inputData[sel].SetValue("")
                 self.inputData[sel].SetValue("")
             return
             return
         elif itemsLen == 1:
         elif itemsLen == 1:
@@ -719,7 +718,7 @@ class VNETDialog(wx.Dialog):
 
 
                 if not colVal:
                 if not colVal:
                     continue
                     continue
-                if colVal not in self.inputData[colInptF].GetItems():
+                if colVal != self.inputData[colInptF].GetValue():
                     errInput[col] = colVal
                     errInput[col] = colVal
 
 
         return errInput
         return errInput