summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2012-09-12 15:19:08 +0200
committerRadek Doulik <rodo@novell.com>2012-09-12 15:20:24 +0200
commitc37575d3cd0b9ac36fce62d8f3f5c75566644e36 (patch)
tree05210ad8fd9e00256249d6c76f6a975f9a585592 /sd
parentb0759366fc6cdda2db2f2cb4208df36c1b1fe8fc (diff)
small optimization
Change-Id: I236d6580f92ad7c0269c42471f187f5ce7b8094d
Diffstat (limited to 'sd')
-rw-r--r--sd/source/filter/eppt/pptx-epptooxml.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/filter/eppt/pptx-epptooxml.cxx b/sd/source/filter/eppt/pptx-epptooxml.cxx
index dff7be277e04..ee392a600ce5 100644
--- a/sd/source/filter/eppt/pptx-epptooxml.cxx
+++ b/sd/source/filter/eppt/pptx-epptooxml.cxx
@@ -1126,11 +1126,11 @@ void PowerPointExport::WriteAnimationNodeCommonPropsStart( FSHelperPtr pFS, cons
if( xEnumeration->hasMoreElements() ) {
pFS->startElementNS( XML_p, XML_childTnLst, FSEND );
- while( xEnumeration->hasMoreElements() ) {
+ do {
Reference< XAnimationNode > xChildNode( xEnumeration->nextElement(), UNO_QUERY );
if( xChildNode.is() )
WriteAnimationNode( pFS, xChildNode, nType == EffectNodeType::MAIN_SEQUENCE );
- }
+ } while( xEnumeration->hasMoreElements() );
pFS->endElementNS( XML_p, XML_childTnLst );
}