Commit 594df98f authored by Jérémie Dudouet's avatar Jérémie Dudouet
Browse files

Correction of a bug when storing histograms from different files

parent 265c65bd
......@@ -923,7 +923,10 @@ void CXMainWindow::AddToStoredSpectra(TObject *c)
if(IsHist2DPlayerEnabled==false)
ToggleTab(IsHist2DPlayerEnabled,M_Hist2DPlayer,fHist2DPlayerTab,fHist2DPlayer->GetName());
fHist2DPlayer->AddToStoredList(o->Clone());
TObject *clone = o->Clone();
if(o->InheritsFrom(TH1::Class_Name()))
((TH1*)clone)->SetDirectory(nullptr);
fHist2DPlayer->AddToStoredList(clone);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment