mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
[processing] convert strings to numbers when initializing parameters
from description file (fix #11011)
This commit is contained in:
parent
fec27111ee
commit
4fb28987ba
@ -367,8 +367,8 @@ class ParameterNumber(Parameter):
|
||||
except:
|
||||
self.default = float(default)
|
||||
self.isInteger = False
|
||||
self.min = minValue
|
||||
self.max = maxValue
|
||||
self.min = int(minValue) if self.isInteger else float(minValue)
|
||||
self.max = int(maxValue) if self.isInteger else float(maxValue)
|
||||
self.value = None
|
||||
|
||||
def setValue(self, n):
|
||||
|
Loading…
x
Reference in New Issue
Block a user