diff options
Diffstat (limited to 'slideshow/source')
-rw-r--r-- | slideshow/source/engine/shapes/gdimtftools.cxx | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/slideshow/source/engine/shapes/gdimtftools.cxx b/slideshow/source/engine/shapes/gdimtftools.cxx index eb633515cc21..e47d1bdf2818 100644 --- a/slideshow/source/engine/shapes/gdimtftools.cxx +++ b/slideshow/source/engine/shapes/gdimtftools.cxx @@ -291,32 +291,8 @@ bool getAnimationFromGraphic( VectorOfMtfAnimationFrames& o_rFrames, pVDevMask->SetOutputSizePixel( aAnimSize ); pVDevMask->EnableMapMode( false ); - switch( aAnimation.GetCycleMode() ) - { - case CYCLE_NOT: - o_rLoopCount = 1; - o_eCycleMode = CYCLE_LOOP; - break; - - case CYCLE_FALLBACK: - // FALLTHROUGH intended - case CYCLE_NORMAL: - o_rLoopCount = aAnimation.GetLoopCount(); - o_eCycleMode = CYCLE_LOOP; - break; - - case CYCLE_REVERS: - // FALLTHROUGH intended - case CYCLE_REVERS_FALLBACK: - o_rLoopCount = aAnimation.GetLoopCount(); - o_eCycleMode = CYCLE_PINGPONGLOOP; - break; - - default: - ENSURE_OR_RETURN_FALSE(false, - "getAnimationFromGraphic(): Unexpected case" ); - break; - } + o_rLoopCount = aAnimation.GetLoopCount(); + o_eCycleMode = CYCLE_LOOP; for( sal_uInt16 i=0, nCount=aAnimation.Count(); i<nCount; ++i ) { |