Skip to content
Permalink
Browse files

Typo fixes.

  • Loading branch information
sept-en committed Mar 23, 2016
1 parent 736be48 commit f0be0457d5907aacfa32b2fecf119057e0d2ee1a
Showing with 3 additions and 3 deletions.
  1. +3 −3 python/plugins/processing/core/parameters.py
@@ -347,7 +347,7 @@ def __init__(self, name='', description='', datatype=-1, optional=False):
By default minimal number of inputs is set to 1
@type _minNumInputs: numeric type or list
@type _minNumInputs: numeric type or None
@param _minNumInputs: required minimum number of inputs for parameter. \
If user will pass None as parameter, we will use default minimal number of inputs (1)
@return: result, if the minimum number of inputs were set.
@@ -362,7 +362,7 @@ def setMinNumInputs(self, _minNumInputs):
# dont allow to set negative or null number of inputs if parameter isn't optional
return False

self.minNumInputs = int(minNumInputs)
self.minNumInputs = int(_minNumInputs)
return True

""" Get minimum required number of inputs for parameter
@@ -390,7 +390,7 @@ def setValue(self, obj):
else:
return False
# prevent setting value if we didn't provide required minimal number of inputs
elif len(obj) < minNumInputs:
elif len(obj) < self.minNumInputs:
return False

self.value = ";".join([self.getAsString(lay) for lay in obj])

0 comments on commit f0be045

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