Browse Source

wxGUI/import: don't ignore -o flag

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@67633 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 9 years ago
parent
commit
e3e05eff12
1 changed files with 2 additions and 5 deletions
  1. 2 5
      gui/wxpython/modules/import_export.py

+ 2 - 5
gui/wxpython/modules/import_export.py

@@ -289,10 +289,9 @@ class ImportDialog(wx.Dialog):
         
         
         layers = self.list.GetLayers()
         layers = self.list.GetLayers()
         
         
-        if differentProjLayers:
+        if differentProjLayers and '-o' not in self.getSettingsPageCmd():
 
 
-            dlg = RerojectionDialog(
-                parent=self, giface=self._giface, data=differentProjLayers)
+            dlg = RerojectionDialog(parent=self, giface=self._giface, data=differentProjLayers)
                 
                 
             ret = dlg.ShowModal()
             ret = dlg.ShowModal()
 
 
@@ -363,7 +362,6 @@ class GdalImportDialog(ImportDialog):
         self.commandId = -1
         self.commandId = -1
         data = self.list.GetLayers()
         data = self.list.GetLayers()
 
 
-
         data = self._getLayersToReprojetion(2, 3)
         data = self._getLayersToReprojetion(2, 3)
 
 
         if data is None:
         if data is None:
@@ -377,7 +375,6 @@ class GdalImportDialog(ImportDialog):
         dsn  = self.dsnInput.GetDsn()
         dsn  = self.dsnInput.GetDsn()
         ext  = self.dsnInput.GetFormatExt()
         ext  = self.dsnInput.GetFormatExt()
         
         
-        
         for layer, output, listId in data:
         for layer, output, listId in data:
             userData = {}
             userData = {}