فهرست منبع

wx.vnet: fix of costs

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@63953 15284696-431f-4ddb-bdfa-cd5b030d7da7
Štěpán Turek 10 سال پیش
والد
کامیت
3a25e950ea
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 3 2
      gui/wxpython/vnet/vnet_data.py

+ 3 - 2
gui/wxpython/vnet/vnet_data.py

@@ -632,9 +632,10 @@ class VNETAnalysisParameters:
             columnchoices = dbInfo.GetTableDesc(table)
         except (KeyError, ValueError):
             table = None
-        
+
         # check costs columns
         for col in ["arc_column", "arc_backward_column", "node_column"]:
+        
             if col == "node_column":
                 try:
                     table = dbInfo.GetTable(int(params["node_layer"]))
@@ -646,7 +647,7 @@ class VNETAnalysisParameters:
                 invParams.append(col)
                 continue
             
-            if not columnchoices[col].value['type'] not in ['integer', 'double precision']:
+            if columnchoices[params[col]]['type'] not in ['integer', 'double precision']:
                 invParams.append(col)
                 continue