summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2016-05-28 19:48:41 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-30 06:35:15 +0000
commitb0950b157859c63561958d894f3363ccc9cad8c4 (patch)
tree7aff0bd46b9824a74d5f855f62b5bc3f6b9059ba /slideshow
parent77d5491e15c96b5864fccd3ffc3d6a7b90e93367 (diff)
Remove CycleMode enum
to never takes any value other than NORMAL Change-Id: I9558ee8864537c695ce1172a0cfad421d5f591ee Reviewed-on: https://gerrit.libreoffice.org/25587 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/engine/shapes/gdimtftools.cxx28
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 )
{