Skip to content
Snippets Groups Projects
Commit d9c001ba authored by Bertrand Bellenot's avatar Bertrand Bellenot
Browse files

Make sure that the fit parameter values are up to date when cliking on Ok

parent e2225044
No related branches found
No related tags found
No related merge requests found
......@@ -570,6 +570,8 @@ void TFitParametersDialog::SetParameters()
{
fFunc->SetRange(fRangexmin, fRangexmax);
for (Int_t i = 0; i < fNP; i++ ) {
// first make sure the current value is up to date
fParVal[i]->GetNumberEntry()->ReturnPressed();
if (fParFix[i]->GetState() == kButtonDown) {
fFunc->SetParameter(i, fParVal[i]->GetNumber());
fFunc->FixParameter(i, fParVal[i]->GetNumber());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment