mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
[processing] only set number min value as default if parameter is not optional
This commit is contained in:
parent
6be71f0c86
commit
fdaff06abf
@ -184,7 +184,7 @@ class NumberInputPanel(NUMBER_BASE, NUMBER_WIDGET):
|
||||
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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user