summaryrefslogtreecommitdiff
path: root/xmloff/source/draw/animationimport.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/draw/animationimport.cxx')
-rw-r--r--xmloff/source/draw/animationimport.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmloff/source/draw/animationimport.cxx b/xmloff/source/draw/animationimport.cxx
index 2b3c740be2d7..ae6556b99b0c 100644
--- a/xmloff/source/draw/animationimport.cxx
+++ b/xmloff/source/draw/animationimport.cxx
@@ -628,12 +628,12 @@ AnimationNodeContext::AnimationNodeContext(
const css::uno::Reference< css::xml::sax::XAttributeList>& xAttrList,
const std::shared_ptr<AnimationsImportHelperImpl>& pHelper )
: SvXMLImportContext(rImport, nPrfx, rLocalName),
- mpHelper( pHelper ),
- mbRootContext( !pHelper )
+ mpHelper( pHelper )
{
+ bool bRootContext = !pHelper;
try
{
- if( mbRootContext )
+ if( bRootContext )
{
mpHelper = std::make_shared<AnimationsImportHelperImpl>( rImport );
mxNode = xParentNode;