Skip to content
Permalink
Browse files

[processing] convert strings to numbers when initializing parameters

from description file (fix #11011)
  • Loading branch information
alexbruy committed Aug 6, 2014
1 parent fec2711 commit 4fb28987bacff2c94766b27ecd3d7e30e0194655
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/processing/core/parameters.py
@@ -367,8 +367,8 @@ def __init__(self, name='', description='', minValue=None, maxValue=None,
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):

0 comments on commit 4fb2898

Please sign in to comment.
You can’t perform that action at this time.