浏览代码

wxGUI Set vector output format: fix load profile settings (#451)

Tomas Zigo 5 年之前
父节点
当前提交
cd37b9b2f2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/gui_core/gselect.py

+ 1 - 1
gui/wxpython/gui_core/gselect.py

@@ -1893,7 +1893,7 @@ class GdalSelect(wx.Panel):
         # data list: [type, dsn, format, options]
         # data list: [type, dsn, format, options]
         if len(data) == 3:
         if len(data) == 3:
             data.append('')
             data.append('')
-        elif len < 3:
+        elif len(data) < 3:
             return
             return
 
 
         self.source.SetSelection(self.sourceMap[data[0]])
         self.source.SetSelection(self.sourceMap[data[0]])