Skip to content

Commit fdaff06

Browse files
committedJul 16, 2018
[processing] only set number min value as default if parameter is not optional
1 parent 6be71f0 commit fdaff06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/plugins/processing/gui/NumberInputPanel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def __init__(self, param):
184184
self.spnValue.setClearValue(float(param.defaultValue()))
185185
except:
186186
pass
187-
elif self.param.minimum() is not None:
187+
elif self.param.minimum() is not None and not self.allowing_null:
188188
try:
189189
self.setValue(float(self.param.minimum()))
190190
if not self.allowing_null:

0 commit comments

Comments
 (0)
Please sign in to comment.