summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2012-08-15 13:54:46 +0200
committerRadek Doulik <rodo@novell.com>2012-09-12 12:50:25 +0200
commitb962b31a4e6709c5bf3d44e185f9f838de2051e2 (patch)
tree8a4390ceb3c5314a0f9f5c4834ea5cf91c95a80d /sd
parent547e2d66f590a076eed0941d6ae47c5727a6ed40 (diff)
avoid writing empty p:childTnLst elements, fixes rest of fdo#41992
Change-Id: Idc09103bb8e4dbd580b5ae53f7929b4700f2c818
Diffstat (limited to 'sd')
-rw-r--r--sd/source/filter/eppt/pptx-epptooxml.cxx17
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"));
}
}