From 954b0e02b01897914846f18f850dd844608f34ff Mon Sep 17 00:00:00 2001 From: Rene Brun <Rene.Brun@cern.ch> Date: Mon, 12 Jan 2004 14:45:33 +0000 Subject: [PATCH] From Philippe: fix the backward compatibility for TFormula. We still might want to remove fOper fNoldOper, but at least now old TFormula can be read. git-svn-id: http://root.cern.ch/svn/root/trunk@7887 27541ba8-7e3a-0410-8455-c3a389f83636 --- hist/src/TFormula.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hist/src/TFormula.cxx b/hist/src/TFormula.cxx index 2668dc3982e..51cb756f872 100644 --- a/hist/src/TFormula.cxx +++ b/hist/src/TFormula.cxx @@ -1,4 +1,4 @@ -// @(#)root/hist:$Name: $:$Id: TFormula.cxx,v 1.63 2004/01/06 07:44:35 brun Exp $ +// @(#)root/hist:$Name: $:$Id: TFormula.cxx,v 1.65 2004/01/10 10:52:29 brun Exp $ // Author: Nicolas Brun 19/08/95 /************************************************************************* @@ -2807,6 +2807,11 @@ void TFormula::Convert(UInt_t /* fromVersion */, Int_t *oldOper) // Convert the fOper of a TFormula version fromVersion to the current in memory version Assert(oldOper==fOper); // the argument is only for derived class and has to match fOper + + if (fActions==0) { + fActions = new Short_t[fNoper]; + fActionParams = new Short_t[fNoper]; + } enum { kOldexpo = 1000, -- GitLab