Author: alg Date: Thu Jan 30 15:46:33 2014 New Revision: 1562861 URL: http://svn.apache.org/r1562861 Log: i12355 in AnimationNode take invalid parent into account
Modified: openoffice/trunk/main/animations/source/animcore/animcore.cxx Modified: openoffice/trunk/main/animations/source/animcore/animcore.cxx URL: http://svn.apache.org/viewvc/openoffice/trunk/main/animations/source/animcore/animcore.cxx?rev=1562861&r1=1562860&r2=1562861&view=diff ============================================================================== --- openoffice/trunk/main/animations/source/animcore/animcore.cxx (original) +++ openoffice/trunk/main/animations/source/animcore/animcore.cxx Thu Jan 30 15:46:33 2014 @@ -2078,7 +2078,19 @@ void AnimationNode::fireChangeListener() } } - if( mpParent ) + // #i123585# check mpParent, it is extracted from mxParent (see AnimationNode::setParent) + // and may be invalid when mxParent got deleted in the meantime + if(mpParent) + { + Reference< XInterface > xCheckReference(mxParent); + + if(!xCheckReference.is()) + { + mpParent = 0; + } + } + + if( mpParent ) mpParent->fireChangeListener(); }