Skip to content
Snippets Groups Projects
Commit 343e60c8 authored by Sergey Gorbunov's avatar Sergey Gorbunov
Browse files

do not register CbmQaCanvas in the global list of canvases

parent 00c59c90
No related branches found
No related tags found
1 merge request!99do not register CbmQaCanvas in the global list of canvases
...@@ -48,6 +48,10 @@ private: ...@@ -48,6 +48,10 @@ private:
/// Constructor which calls TCanvas constructor and restores the bach mode /// Constructor which calls TCanvas constructor and restores the bach mode
template<typename... Types> template<typename... Types>
CbmQaCanvas(MyBoolean oldBatchMode, Types... args) : TCanvas(args...) { CbmQaCanvas(MyBoolean oldBatchMode, Types... args) : TCanvas(args...) {
// prevent automatic deletion of this canvas
// when another canvas with the same name is created somewhere else
gROOT->GetListOfCanvases()->Remove(this);
// reset the batch mode to its original value
gROOT->SetBatch((Bool_t) oldBatchMode); gROOT->SetBatch((Bool_t) oldBatchMode);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment