Changeset 9569 for trunk


Ignore:
Timestamp:
04/14/10 15:20:31 (15 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mbase/MStatusArray.cc

    r9532 r9569  
    7777// name) recuresively
    7878//
     79#include<TPaveText.h>
    7980void MStatusArray::RecursiveDelete(TVirtualPad *p, const char id) const
    8081{
     
    8990        {
    9091            while (p->GetListOfPrimitives()->Remove(o));
     92
     93            // This is necessary because for unknown reasons TPaveText
     94            // as a member of a class (e.g. MHRanForestGini) doesn't
     95            // get removed from the pad if deleted, and therefore
     96            // gets deleted twice (FIXME: To be investigated)
     97            if (dynamic_cast<TPaveText*>(o) && !o->TestBit(kCanDelete))
     98                continue;
     99
    91100            delete o;
    92101
Note: See TracChangeset for help on using the changeset viewer.