We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c462d3d commit 167c0ccCopy full SHA for 167c0cc
roofit/roofitcore/src/RooPlot.cxx
@@ -56,6 +56,7 @@ object onto a one-dimensional plot.
56
#include "TH1D.h"
57
#include "TBrowser.h"
58
#include "TVirtualPad.h"
59
+#include "TROOT.h"
60
61
#include "TAttLine.h"
62
#include "TAttFill.h"
@@ -73,7 +74,7 @@ object onto a one-dimensional plot.
73
74
75
bool RooPlot::_addDirStatus = true ;
76
-bool RooPlot::addDirectoryStatus() { return _addDirStatus; }
77
+bool RooPlot::addDirectoryStatus() { return ROOT::Experimental::IsImplicitObjectOwnershipEnabled() && _addDirStatus; }
78
bool RooPlot::setAddDirectoryStatus(bool flag) { bool ret = flag ; _addDirStatus = flag ; return ret ; }
79
80
0 commit comments