Skip to content

Commit db85502

Browse files
committed
Fix not-set defaults for numeric parameters were converted to 0
1 parent 297e856 commit db85502

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/plugins/processing/core/parameters.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def getParameterFromString(s):
146146
if len(params) > 2:
147147
params[2] = QgsProcessingParameterNumber.Integer if params[2].lower().endswith('int') else QgsProcessingParameterNumber.Double
148148
if len(params) > 3:
149-
params[3] = float(params[3].strip()) if params[3] is not None else 0
149+
params[3] = float(params[3].strip()) if params[3] is not None else None
150150
if len(params) > 4:
151151
params[4] = True if params[4].lower() == 'true' else False
152152
if len(params) > 5:

0 commit comments

Comments
 (0)