Changeset 9571 for trunk/MagicSoft/Mars/mbase
- Timestamp:
- 04/19/10 13:11:19 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MStatusArray.cc
r9569 r9571 49 49 #include <TCanvas.h> 50 50 51 #include <TGraph.h> // For the TGraph workaround 52 #include <TPaveText.h> // For the TPaveText workaround 53 51 54 #include "MLog.h" 52 55 #include "MLogManip.h" … … 56 59 57 60 ClassImp(MStatusArray); 58 59 #include <TGraph.h>60 61 61 62 using namespace std; … … 77 78 // name) recuresively 78 79 // 79 #include<TPaveText.h>80 80 void MStatusArray::RecursiveDelete(TVirtualPad *p, const char id) const 81 81 { … … 98 98 continue; 99 99 100 /* 101 // This is necessary because the histogram can get deleted 102 // but is not treated in TGraph recursive remove. Unfortunately, 103 // we have no possibility to find out whether it was already 104 // deleted. Fortunately these histograms don't contain data 105 // and threfore don't consume memory. 106 TGraph *g = dynamic_cast<TGraph*>(o); 107 if (g) 108 g->SetHistogram(0); 109 */ 110 100 111 delete o; 101 112 … … 153 164 if (dynamic_cast<TGraph*>(o)) 154 165 { 166 // FIXME: This should not be called for the TGraph 167 // which is currently getting deleted. 155 168 TGraph *g = static_cast<TGraph*>(o); 156 169 if (g->GetHistogram()==obj) 157 170 g->SetHistogram(0); 171 else 172 g->GetHistogram()->SetBit(kMustCleanup); 158 173 159 174 continue; … … 175 190 TObjArray::RecursiveRemove(obj); 176 191 192 // FIXME: Maybe we still have to call SetBit(kMustCleanup) ??? 193 #if ROOT_VERSION_CODE <= ROOT_VERSION(5,26,00) 177 194 TObject *o = 0; 178 195 … … 180 197 while ((o=Next())) 181 198 RecursiveRemove(dynamic_cast<TVirtualPad*>(o), obj); 199 #endif 182 200 } 183 201
Note:
See TracChangeset
for help on using the changeset viewer.