[Libreoffice-commits] .: sd/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Sep 17 07:48:21 PDT 2012
sd/source/filter/ppt/ppt97animations.cxx | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
New commits:
commit 1b3b9585201c8d6037e96aa5ed78c3947a5a8a26
Author: Thorsten Behrens <tbehrens at suse.com>
Date: Mon Sep 17 16:18:52 2012 +0200
Cppcheck: remove duplicate if/else in sd.
Change-Id: I872dd578729d8fe43d50fbf835b977adff8aded5
diff --git a/sd/source/filter/ppt/ppt97animations.cxx b/sd/source/filter/ppt/ppt97animations.cxx
index f51a790..6253978 100644
--- a/sd/source/filter/ppt/ppt97animations.cxx
+++ b/sd/source/filter/ppt/ppt97animations.cxx
@@ -682,11 +682,8 @@ void Ppt97Animation::createAndSetCustomAnimationEffect( SdrObject* pObj )
// append the effect to the main sequence
if( !this->HasParagraphEffect() )
{
- if( this->HasAnimateAssociatedShape() )
- pEffect->setTargetSubItem( presentation::ShapeAnimationSubType::AS_WHOLE );
- else
- pEffect->setTargetSubItem( presentation::ShapeAnimationSubType::AS_WHOLE ); //todo: set ONLY_TEXT again if that is fixed
- //pEffect->setTargetSubItem( presentation::ShapeAnimationSubType::ONLY_TEXT );
+ // TODO: !this->HasAnimateAssociatedShape() can possibly have this set to ONLY_TEXT - see i#42737
+ pEffect->setTargetSubItem( presentation::ShapeAnimationSubType::AS_WHOLE );
}
//3. ------ put the created effect to the model and do some last changes fro paragraph effects ------
More information about the Libreoffice-commits
mailing list