Skip to content
Permalink
Browse files

[processing] only set number min value as default if parameter is not…

… optional
  • Loading branch information
nirvn committed Jul 16, 2018
1 parent 6be71f0 commit fdaff06abfe92e56ab9b25dc65b001649cb5cfcc
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/processing/gui/NumberInputPanel.py
@@ -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:

0 comments on commit fdaff06

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