Hi Marco, This problem had already been reported by Damon Spayde and fixed in our devlopment version. Rene Brun Marco van Leeuwen wrote: > > Hi, > > TGraph::GetFunction doesn't return the proper pointer to a function. > Although I'm using Root 2.23/12, I think the bug is still present: > > TF1 *TGraph::GetFunction(const char *name) > { > //*-*-*-*-*Return pointer to function with name*-*-*-*-*-*-*-*-*-*-*-*-* > //*-* =================================== > // > // Functions such as TGraph::Fit store the fitted function in the list of > // functions of this graph. > > if (fFunctions) return 0; > return (TF1*)fFunctions->FindObject(name); > } > > Shouldn't the first line be: > > if (!fFunctions) return 0; > > ???? > > Could you please change this? (In the mean time, it is easy to work > around, of course.) > > Kind regards, > > Marco van Leeuwen.
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:26 MET