Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
luipir committed Oct 2, 2014
1 parent 675ba9a commit c9e0328
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/plugins/GdalTools/tools/GdalTools_utils.py
Expand Up @@ -476,6 +476,11 @@ def getFilterExtensions(self, aFilter):

@classmethod
def getFilterName(self, aFilter):
if isinstance(aFilter, list):
if len(aFilter):
aFilter = aFilter[0]
else:
aFilter = ""
return string.strip(re.sub('\ \(.*$', '', aFilter))

@classmethod
Expand Down

0 comments on commit c9e0328

Please sign in to comment.