diff options
Diffstat (limited to 'sd/source/filter/eppt/pptx-epptooxml.cxx')
-rw-r--r-- | sd/source/filter/eppt/pptx-epptooxml.cxx | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/sd/source/filter/eppt/pptx-epptooxml.cxx b/sd/source/filter/eppt/pptx-epptooxml.cxx index dd36bd726a97..23be9b8c7c0e 100644 --- a/sd/source/filter/eppt/pptx-epptooxml.cxx +++ b/sd/source/filter/eppt/pptx-epptooxml.cxx @@ -1127,16 +1127,17 @@ void PowerPointExport::WriteAnimationNodeCommonPropsStart( FSHelperPtr pFS, cons if( xEnumeration.is() ) { DBG(printf ("-----\n")); - pFS->startElementNS( XML_p, XML_childTnLst, FSEND ); + if( xEnumeration->hasMoreElements() ) { + pFS->startElementNS( XML_p, XML_childTnLst, FSEND ); - while( xEnumeration->hasMoreElements() ) { - Reference< XAnimationNode > xChildNode( xEnumeration->nextElement(), UNO_QUERY ); - if( xChildNode.is() ) - WriteAnimationNode( pFS, xChildNode, nType == EffectNodeType::MAIN_SEQUENCE ); - } - - pFS->endElementNS( XML_p, XML_childTnLst ); + while( xEnumeration->hasMoreElements() ) { + Reference< XAnimationNode > xChildNode( xEnumeration->nextElement(), UNO_QUERY ); + if( xChildNode.is() ) + WriteAnimationNode( pFS, xChildNode, nType == EffectNodeType::MAIN_SEQUENCE ); + } + pFS->endElementNS( XML_p, XML_childTnLst ); + } DBG(printf ("-----\n")); } } |