mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[Processing] Fix limits in NumberInputPanel when the limiting value is 0
This commit is contained in:
parent
4d681f03c6
commit
0dfb1561c6
@ -45,11 +45,11 @@ class NumberInputPanel(BASE, WIDGET):
|
||||
self.isInteger = isInteger
|
||||
if self.isInteger:
|
||||
self.spnValue.setDecimals(0)
|
||||
if maximum:
|
||||
if maximum == 0 or maximum:
|
||||
self.spnValue.setMaximum(maximum)
|
||||
else:
|
||||
self.spnValue.setMaximum(99999999)
|
||||
if minimum:
|
||||
if minimum == 0 or minimum:
|
||||
self.spnValue.setMinimum(minimum)
|
||||
else:
|
||||
self.spnValue.setMinimum(-99999999)
|
||||
|
Loading…
x
Reference in New Issue
Block a user