mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
follow up 4fb28987ba
This commit is contained in:
parent
4fb28987ba
commit
03d6425038
@ -367,8 +367,14 @@ class ParameterNumber(Parameter):
|
||||
except:
|
||||
self.default = float(default)
|
||||
self.isInteger = False
|
||||
self.min = int(minValue) if self.isInteger else float(minValue)
|
||||
self.max = int(maxValue) if self.isInteger else float(maxValue)
|
||||
if minValue is not None:
|
||||
self.min = int(minValue) if self.isInteger else float(minValue)
|
||||
else:
|
||||
self.min = None
|
||||
if maxValue is not None:
|
||||
self.max = int(maxValue) if self.isInteger else float(maxValue)
|
||||
else:
|
||||
self.max = None
|
||||
self.value = None
|
||||
|
||||
def setValue(self, n):
|
||||
|
Loading…
x
Reference in New Issue
Block a user