[processing] minor fix in parameter parsing in scripts

This commit is contained in:
volaya 2015-11-06 14:02:38 +01:00
parent 227af8ac8e
commit 9f3bd1d46d

View File

@ -204,7 +204,7 @@ class ScriptAlgorithm(GeoAlgorithm):
options = token.strip()[len('selectionfromfile '):].split(';')
param = ParameterSelection(name, descName, options, isSource=True)
elif token.lower().strip().startswith('selection'):
options = tokens[1].strip()[len('selection '):].split(';')
options = token.strip()[len('selection '):].split(';')
param = ParameterSelection(name, descName, options)
elif token.lower().strip().startswith('boolean'):
default = token.strip()[len('boolean') + 1:]