Changeset 19335


Ignore:
Timestamp:
10/30/18 16:23:22 (6 years ago)
Author:
tbretz
Message:
For some reason giving the formula to be compiled as argument in Compile() does not work with root 6.14. Istead let Compile() get it from the title.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mdata/MDataPhrase.cc

    r19334 r19335  
    448448
    449449    fFormula = new TFormula;
     450
     451    fFormula->SetNameTitle(fName.IsNull()?"TFormula":fName.Data(), txt);
    450452    fFormula->SetBit(kMustCleanup);
    451453
    452454    // Must have a name otherwise all axis labels disappear like a miracle
    453     fFormula->SetName(fName.IsNull()?"TFormula":fName.Data());
    454     if (fFormula->Compile(txt))
     455    if (fFormula->Compile())
    455456    {
    456457        *fLog << err << dbginf << "Syntax Error: TFormula::Compile failed..."<< endl;
     
    778779//
    779780Int_t MDataPhrase::ReadEnv(const TEnv &env, TString prefix, Bool_t print)
    780 {
     781{   
    781782    Bool_t rc = kFALSE;
    782783    if (!IsEnvDefined(env, prefix, "Rule", print))
Note: See TracChangeset for help on using the changeset viewer.