branchobj.cpp
changeset 722 462d39502273
parent 721 12958f987bcf
child 723 11f9124c1cca
     1.1 --- a/branchobj.cpp	Wed Jul 16 10:46:14 2008 +0000
     1.2 +++ b/branchobj.cpp	Wed Jul 16 11:56:44 2008 +0000
     1.3 @@ -53,6 +53,13 @@
     1.4  
     1.5  BranchObj::~BranchObj ()
     1.6  {
     1.7 +	// If I'm animated, I need to un-animate myself first
     1.8 +	if (anim.isAnimated() )
     1.9 +	{
    1.10 +		anim.setAnimated (false);
    1.11 +		model->stopAnimation (this);
    1.12 +	}
    1.13 +
    1.14  	//cout << "Destr BranchObj of "<<this<<endl;
    1.15  	// Check, if this branch was the last child to be deleted
    1.16  	// If so, unset the scrolled flags