summaryrefslogtreecommitdiff
path: root/animations
diff options
context:
space:
mode:
Diffstat (limited to 'animations')
-rw-r--r--animations/source/animcore/animcore.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/animations/source/animcore/animcore.cxx b/animations/source/animcore/animcore.cxx
index 089c868cc60b..3b927ea29472 100644
--- a/animations/source/animcore/animcore.cxx
+++ b/animations/source/animcore/animcore.cxx
@@ -2060,9 +2060,13 @@ void AnimationNode::fireChangeListener()
}
}
- //fdo#69645 use get() on WeakReference of mxParent to test if mpParent is still valid
- if( mpParent && mxParent.get().is() )
- mpParent->fireChangeListener();
+ //fdo#69645 use WeakReference of mxParent to test if mpParent is still valid
+ if (mpParent)
+ {
+ Reference<XInterface> xGuard(mxParent);
+ if (xGuard.is())
+ mpParent->fireChangeListener();
+ }
}
// --------------------------------------------------------------------