Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Typo fixes.
  • Loading branch information
sept-en committed Mar 23, 2016
1 parent 736be48 commit f0be045
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/plugins/processing/core/parameters.py
Expand Up @@ -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.
Expand All @@ -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
Expand Down Expand Up @@ -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])
Expand Down

0 comments on commit f0be045

Please sign in to comment.