Skip to content

Commit

Permalink
fix #11110
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Sep 10, 2014
1 parent 297996f commit 890f921
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/GdalTools/tools/GdalTools_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def fillRasterOutputFormat(aFilter = None, filename = None):

if aFilter != None:
supportedRasters = GdalConfig.getSupportedRasters()
filterName = re.sub('^.*\] ', '', FileFilter.getFilterName( aFilter[0] ))
filterName = re.sub('^.*\] ', '', FileFilter.getFilterName( aFilter ))
if supportedRasters.has_key( filterName ):
return supportedRasters[ filterName ][ "SHORTNAME" ]

Expand All @@ -246,7 +246,7 @@ def fillVectorOutputFormat(aFilter = None, filename = None):

if aFilter != None:
supportedVectors = GdalConfig.getSupportedVectors()
filterName = re.sub('^.*\] ', '', FileFilter.getFilterName( aFilter[0] ))
filterName = re.sub('^.*\] ', '', FileFilter.getFilterName( aFilter ))
if supportedVectors.has_key( filterName ):
return supportedVectors[ filterName ][ "SHORTNAME" ]

Expand Down

0 comments on commit 890f921

Please sign in to comment.