[GRASS-SVN] r45048 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jan 14 20:39:51 EST 2011


Author: martinl
Date: 2011-01-14 17:39:50 -0800 (Fri, 14 Jan 2011)
New Revision: 45048

Modified:
   grass/trunk/gui/wxpython/gui_modules/gdialogs.py
Log:
wxGUI: fix import dxf


Modified: grass/trunk/gui/wxpython/gui_modules/gdialogs.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gdialogs.py	2011-01-15 01:34:36 UTC (rev 45047)
+++ grass/trunk/gui/wxpython/gui_modules/gdialogs.py	2011-01-15 01:39:50 UTC (rev 45048)
@@ -974,7 +974,7 @@
                 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 @@
                    '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'):



More information about the grass-commit mailing list