Skip to content

Commit 4fb2898

Browse files
committed
[processing] convert strings to numbers when initializing parameters
from description file (fix #11011)
1 parent fec2711 commit 4fb2898

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/plugins/processing/core/parameters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,8 @@ def __init__(self, name='', description='', minValue=None, maxValue=None,
367367
except:
368368
self.default = float(default)
369369
self.isInteger = False
370-
self.min = minValue
371-
self.max = maxValue
370+
self.min = int(minValue) if self.isInteger else float(minValue)
371+
self.max = int(maxValue) if self.isInteger else float(maxValue)
372372
self.value = None
373373

374374
def setValue(self, n):

0 commit comments

Comments
 (0)