Skip to content

Commit

Permalink
[processing] only set number min value as default if parameter is not…
Browse files Browse the repository at this point in the history
… optional
  • Loading branch information
nirvn authored and nyalldawson committed Jul 16, 2018
1 parent da6f83b commit 4807611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/processing/gui/NumberInputPanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def __init__(self, param):
self.spnValue.setClearValue(float(param.defaultValue()))
except:
pass
elif self.param.minimum() is not None:
elif self.param.minimum() is not None and not self.allowing_null:
try:
self.setValue(float(self.param.minimum()))
if not self.allowing_null:
Expand Down

0 comments on commit 4807611

Please sign in to comment.