Skip to content
Permalink
Browse files

follow up 4fb2898

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

0 comments on commit 03d6425

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