sd/source/filter/ppt/ppt97animations.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
New commits: commit 1b3b9585201c8d6037e96aa5ed78c3947a5a8a26 Author: Thorsten Behrens <tbehr...@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 ------ _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits