wrong addition to parameter length in iterator

fixes #277
This commit is contained in:
Dominik Demuth 2024-07-04 10:37:24 +00:00
parent 8f92d8d822
commit 856f4a4fd7

View File

@ -495,7 +495,7 @@ class QFitDialog(QtWidgets.QWidget, Ui_FitDialog):
if model_p['active']:
cnt += self.param_widgets[model_p['cnt']].set_parameter(fit_id, param[cnt:])
if model_p['children']:
cnt += self.set_parameter_iter(fit_id, param, model_p['children'], cnt=cnt)
cnt = self.set_parameter_iter(fit_id, param, model_p['children'], cnt=cnt)
return cnt