Skip to content

Commit 8e60f49

Browse files
committedJul 22, 2014
[processing] fixed issues when loading parameters
1 parent f6bf4f1 commit 8e60f49

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎python/plugins/processing/core/parameters.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ def setValue(self, obj):
195195

196196
class ParameterFixedTable(Parameter):
197197

198-
def __init__(self, name='', description='', cols=['value'],
199-
numRows=3, fixedNumOfRows=False):
198+
def __init__(self, name='', description='', numRows=3,
199+
cols=['value'], fixedNumOfRows=False):
200200
Parameter.__init__(self, name, description)
201201
self.cols = cols
202202
if isinstance(cols, basestring):
@@ -244,7 +244,7 @@ class ParameterMultipleInput(ParameterDataObject):
244244

245245
def __init__(self, name='', description='', datatype=-1, optional=False):
246246
ParameterDataObject.__init__(self, name, description)
247-
self.datatype = int(datatype)
247+
self.datatype = int(float(datatype))
248248
self.optional = parseBool(optional)
249249
self.value = None
250250
self.exported = None
@@ -502,7 +502,7 @@ def setValue(self, n):
502502
return True
503503
except:
504504
return False
505-
505+
506506

507507
class ParameterString(Parameter):
508508

0 commit comments

Comments
 (0)
Please sign in to comment.