From 4731af65c81fba56983bcedd599efbbddc44975a Mon Sep 17 00:00:00 2001 From: Ilka Antcheva <Ilka.Antcheva@cern.ch> Date: Fri, 17 Nov 2006 18:37:18 +0000 Subject: [PATCH] - pass the function range to parameters' dialog git-svn-id: http://root.cern.ch/svn/root/trunk@16813 27541ba8-7e3a-0410-8455-c3a389f83636 --- fitpanel/src/TFitEditor.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fitpanel/src/TFitEditor.cxx b/fitpanel/src/TFitEditor.cxx index ab47e3e03fa..50e0048b13e 100644 --- a/fitpanel/src/TFitEditor.cxx +++ b/fitpanel/src/TFitEditor.cxx @@ -1,4 +1,4 @@ -// @(#)root/fitpanel:$Name: $:$Id: TFitEditor.cxx,v 1.9 2006/11/16 12:30:32 antcheva Exp $ +// @(#)root/fitpanel:$Name: $:$Id: TFitEditor.cxx,v 1.10 2006/11/16 15:39:52 antcheva Exp $ // Author: Ilka Antcheva, Lorenzo Moneta 10/08/2006 /************************************************************************* @@ -1577,8 +1577,10 @@ void TFitEditor::DoSetParameters() printf("SetParamters - create fit function %s\n",fFunction.Data()); fFitFunc = new TF1("fitFunc",Form("%s",fFunction.Data()), fXmin, fXmax); } + Double_t xmin, xmax; + fFitFunc->GetRange(xmin, xmax); new TFitParametersDialog(gClient->GetDefaultRoot(), GetMainFrame(), - fFitFunc, fParentPad, fXmin, fXmax); + fFitFunc, fParentPad, xmin, xmax); } //______________________________________________________________________________ -- GitLab