gdaltools: fix Translate/FillNodata batch mode (follo df4fc99e83)

This commit is contained in:
Giuseppe Sucameli 2013-06-27 23:31:18 +02:00
parent d1474956f2
commit c8d3fa7d0a
2 changed files with 4 additions and 4 deletions

View File

@ -206,8 +206,8 @@ class GdalToolsDialog( QWidget, Ui_Widget, BaseBatchWidget ):
def batchRun(self):
exts = re.sub('\).*$', '', re.sub('^.*\(', '', self.formatCombo.currentText())).split(" ")
if exts and exts != "*" and exts != "*.*":
outExt = exts[ 0 ].remove( "*" )
if len(exts) > 0 and exts[0] != "*" and exts[0] != "*.*":
outExt = exts[0].replace( "*", "" )
else:
outExt = ".tif"

View File

@ -277,8 +277,8 @@ class GdalToolsDialog(QWidget, Ui_Widget, BaseBatchWidget):
def batchRun(self):
exts = re.sub('\).*$', '', re.sub('^.*\(', '', self.formatCombo.currentText())).split(" ")
if exts and exts != "*" and exts != "*.*":
outExt = exts[ 0 ].remove( "*" )
if len(exts) > 0 and exts[0] != "*" and exts[0] != "*.*":
outExt = exts[0].replace( "*", "" )
else:
outExt = ".tif"