Skip to content

Commit

Permalink
[sextante] fixed #7297
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Mar 10, 2013
1 parent ddddbfc commit bb6d1f5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions python/plugins/sextante/modeler/ModelerAlgorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,19 +216,19 @@ def removeAlgorithm(self, index):
del self.algOutputs[index]
del self.algPos[index]

index = -1
i = -1
for paramValues in self.algParameters:
index += 1
newValues = []
for name, value in paramValues[index]:
i += 1
newValues = {}
for name, value in paramValues.iteritems():
if value:
if value.alg > index:
newValues[name] = AlgorithmAndParameter(value.alg - 1, value.param, value.algName, value.paramName)
else:
newValues[name] = value
else:
newValues[name] = value

self.algParameters[i] = newValues
self.updateModelerView()
return True

Expand Down

0 comments on commit bb6d1f5

Please sign in to comment.