Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[processing] fixed issues when loading parameters
  • Loading branch information
volaya committed Jul 22, 2014
1 parent f6bf4f1 commit 8e60f49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/plugins/processing/core/parameters.py
Expand Up @@ -195,8 +195,8 @@ def setValue(self, obj):

class ParameterFixedTable(Parameter):

def __init__(self, name='', description='', cols=['value'],
numRows=3, fixedNumOfRows=False):
def __init__(self, name='', description='', numRows=3,
cols=['value'], fixedNumOfRows=False):
Parameter.__init__(self, name, description)
self.cols = cols
if isinstance(cols, basestring):
Expand Down Expand Up @@ -244,7 +244,7 @@ class ParameterMultipleInput(ParameterDataObject):

def __init__(self, name='', description='', datatype=-1, optional=False):
ParameterDataObject.__init__(self, name, description)
self.datatype = int(datatype)
self.datatype = int(float(datatype))
self.optional = parseBool(optional)
self.value = None
self.exported = None
Expand Down Expand Up @@ -502,7 +502,7 @@ def setValue(self, n):
return True
except:
return False


class ParameterString(Parameter):

Expand Down

0 comments on commit 8e60f49

Please sign in to comment.