瀏覽代碼

wxGUI: fix import dxf

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@45048 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 14 年之前
父節點
當前提交
3faef73984
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      gui/wxpython/gui_modules/gdialogs.py

+ 5 - 1
gui/wxpython/gui_modules/gdialogs.py

@@ -974,7 +974,7 @@ class ImportDialog(wx.Dialog):
                 continue
             elif cmd == 'v.external' and name not in ('b'):
                 continue
-            elif cmd == 'v.in.dxf' and name not in ('e', 't', 'b', 'f', 'i', '1'):
+            elif cmd == 'v.in.dxf' and name not in ('e', 't', 'b', 'f', 'i'):
                 continue
             self.options[name] = wx.CheckBox(parent = self.panel, id = wx.ID_ANY,
                                              label = desc)
@@ -1284,6 +1284,10 @@ class DxfImportDialog(ImportDialog):
                    'input=%s' % inputDxf,
                    'layers=%s' % layer,
                    'output=%s' % output]
+
+            for key in self.options.keys():
+                if self.options[key].IsChecked():
+                    cmd.append('-%s' % key)
             
             if self.overwrite.IsChecked() or \
                     UserSettings.Get(group='cmd', key='overwrite', subkey='enabled'):