Skip to content

Commit

Permalink
gdaltools: fix Translate/FillNodata batch mode (follo df4fc99)
Browse files Browse the repository at this point in the history
  • Loading branch information
brushtyler committed Jun 27, 2013
1 parent d147495 commit c8d3fa7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions python/plugins/GdalTools/tools/doFillNodata.py
Expand Up @@ -206,8 +206,8 @@ def updateProgress(self, index, total):

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"

Expand Down
4 changes: 2 additions & 2 deletions python/plugins/GdalTools/tools/doTranslate.py
Expand Up @@ -277,8 +277,8 @@ def updateProgress(self, index, total):

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"

Expand Down

0 comments on commit c8d3fa7

Please sign in to comment.