Skip to content
Permalink
Browse files

[sextante] update modeller to changes in parameter vector

  • Loading branch information
alexbruy committed Aug 14, 2013
1 parent 63cf5d3 commit 1596fe66673cbc523ae0e1cb023870189ea9dffb
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/sextante/modeler/ModelerParameterDefinitionDialog.py
@@ -150,7 +150,7 @@ def setupUi(self):
self.shapetypeCombo.addItem("Polygon")
if self.param is not None:
self.yesNoCombo.setCurrentIndex(1 if self.param.optional else 0)
self.shapetypeCombo.setCurrentIndex(self.param.shapetype + 1)
self.shapetypeCombo.setCurrentIndex(self.param.shapetype[0] + 1)
self.horizontalLayout3.addWidget(self.shapetypeCombo)
self.verticalLayout.addLayout(self.horizontalLayout3)
self.verticalLayout.addLayout(self.horizontalLayout2)
@@ -245,7 +245,7 @@ def okPressed(self):
elif self.paramType == ModelerParameterDefinitionDialog.PARAMETER_TABLE or isinstance(self.param, ParameterTable):
self.param = ParameterTable(name, description, self.yesNoCombo.currentIndex() == 1)
elif self.paramType == ModelerParameterDefinitionDialog.PARAMETER_VECTOR or isinstance(self.param, ParameterVector):
self.param = ParameterVector(name, description, self.shapetypeCombo.currentIndex()-1, self.yesNoCombo.currentIndex() == 1)
self.param = ParameterVector(name, description, [self.shapetypeCombo.currentIndex() - 1], self.yesNoCombo.currentIndex() == 1)
elif self.paramType == ModelerParameterDefinitionDialog.PARAMETER_MULTIPLE or isinstance(self.param, ParameterMultipleInput):
self.param = ParameterMultipleInput(name, description, self.datatypeCombo.currentIndex()-1, self.yesNoCombo.currentIndex() == 1)
elif self.paramType == ModelerParameterDefinitionDialog.PARAMETER_NUMBER or isinstance(self.param, ParameterNumber):

0 comments on commit 1596fe6

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