瀏覽代碼

wxGUI: fix v.external.out's front-end when no option is given

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@52430 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 年之前
父節點
當前提交
782ea9472f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/gui_core/gselect.py

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

@@ -1292,7 +1292,7 @@ class GdalSelect(wx.Panel):
             if current['format'] != 'native':
                 self.OnSetFormat(event = None, format = current['format'])
                 self.OnSetDsn(event = None, path = current['dsn'])
-                self.creationOpt.SetValue(current['options'])
+                self.creationOpt.SetValue(current.get('options', ''))
         else:
             if not ogr:
                 self.OnSetFormat(event = None, format = 'GeoTIFF')