[processing] convert strings to numbers when initializing parameters

from description file (fix #11011)
This commit is contained in:
Alexander Bruy 2014-08-06 14:25:24 +03:00
parent fec27111ee
commit 4fb28987ba

View File

@ -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):