Skip to content

Commit

Permalink
Merge pull request #26 from alja/prox4b
Browse files Browse the repository at this point in the history
Remove from mother in ~REveElement
  • Loading branch information
alja authored Feb 7, 2019
2 parents 536635b + 3124457 commit 4123195
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions graf3d/eve7/src/REveElement.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,20 @@ REveElement::REveElement(const REveElement& e) :
REveElement::~REveElement()
{
if (fScene && fScene->IsAcceptingChanges()) {
printf("PreDeleteElement add to remove list (SCENE =%s) %d \n", fScene->GetCName(), fElementId);
fScene->SceneElementRemoved( fElementId);
fScene->SceneElementRemoved( fElementId);
}
if (fDestructing != kAnnihilate)
{
fDestructing = kStandard;
RemoveElementsInternal();

if (fMother)
{
fMother->RemoveElementLocal(this);
fMother->fChildren.remove(this);
--(fMother->fNumChildren);
}

for (auto &au : fAunts)
{
au->RemoveNieceInternal(this);
Expand Down

0 comments on commit 4123195

Please sign in to comment.