Skip to content
Permalink
Browse files

Fix not-set defaults for numeric parameters were converted to 0

  • Loading branch information
nyalldawson committed Dec 1, 2017
1 parent 297e856 commit db855029de2c94e4f00a6b6d17b0c68021a7b0fa
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/core/parameters.py
@@ -146,7 +146,7 @@ def getParameterFromString(s):
if len(params) > 2:
params[2] = QgsProcessingParameterNumber.Integer if params[2].lower().endswith('int') else QgsProcessingParameterNumber.Double
if len(params) > 3:
params[3] = float(params[3].strip()) if params[3] is not None else 0
params[3] = float(params[3].strip()) if params[3] is not None else None
if len(params) > 4:
params[4] = True if params[4].lower() == 'true' else False
if len(params) > 5:

0 comments on commit db85502

Please sign in to comment.
You can’t perform that action at this time.