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-08-15 13:56:03 +0200
commit3228062c517d886a78572d7162bc661fb41e9a32 (patch)
tree8a8f34ce64ebc5a9c0349ffc0f7d75200ea1c147 /sd
parentf7ca0e46532ba10d91d0e814938423e5995fdf91 (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 2b83a7b79c87..dff7be277e04 100644
--- a/sd/source/filter/eppt/pptx-epptooxml.cxx
+++ b/sd/source/filter/eppt/pptx-epptooxml.cxx
@@ -1123,16 +1123,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"));
}
}