Skip to content

Commit

Permalink
Merge pull request #6795 from rldhont/processing-default-string-param…
Browse files Browse the repository at this point in the history
…eter-none-218

[Processing] None is the default value for parameters also for string
  • Loading branch information
rldhont committed May 2, 2018
2 parents 0c03378 + ac4d776 commit d6af93e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/core/parameters.py
Expand Up @@ -740,7 +740,7 @@ class ParameterString(Parameter):
NEWLINE = '\n'
ESCAPED_NEWLINE = '\\n'

def __init__(self, name='', description='', default='', multiline=False,
def __init__(self, name='', description='', default=None, multiline=False,
optional=False, evaluateExpressions=False):
Parameter.__init__(self, name, description, default, optional)
self.multiline = parseBool(multiline)
Expand Down

0 comments on commit d6af93e

Please sign in to comment.