瀏覽代碼

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 年之前
父節點
當前提交
e3e05eff12
共有 1 個文件被更改,包括 2 次插入5 次删除
  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()
         
-        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()
 
@@ -363,7 +362,6 @@ class GdalImportDialog(ImportDialog):
         self.commandId = -1
         data = self.list.GetLayers()
 
-
         data = self._getLayersToReprojetion(2, 3)
 
         if data is None:
@@ -377,7 +375,6 @@ class GdalImportDialog(ImportDialog):
         dsn  = self.dsnInput.GetDsn()
         ext  = self.dsnInput.GetFormatExt()
         
-        
         for layer, output, listId in data:
             userData = {}