summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2012-08-15 13:54:46 +0200
committerRadek Doulik <rodo@novell.com>2012-10-15 15:36:17 +0200
commiteb0950f81414aac112d814011c02413354a974b4 (patch)
tree9a3f908f1d588f9e95edf529ae892ec75c3c4388
parent0f53a5de76e4ac5d9e655bcfc08418706eef838c (diff)
avoid writing empty p:childTnLst elements, fixes rest of fdo#41992
Change-Id: Idc09103bb8e4dbd580b5ae53f7929b4700f2c818
-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"));
}
}