Kaydet (Commit) 1b3b9585 authored tarafından Thorsten Behrens's avatar Thorsten Behrens

Cppcheck: remove duplicate if/else in sd.

Change-Id: I872dd578729d8fe43d50fbf835b977adff8aded5
üst 7371e3db
......@@ -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 ------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment