1 |
From 9d023f82974f6805d61af53418a8919796fb0f73 Mon Sep 17 00:00:00 2001 |
2 |
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com> |
3 |
Date: Wed, 8 Mar 2017 10:04:17 +0000 |
4 |
Subject: [PATCH] show the last gif frame when the animation ends |
5 |
|
6 |
Change-Id: I240d0a46cff905edababbd13fe7e58c9e4d0f0db |
7 |
--- |
8 |
slideshow/source/engine/shapes/intrinsicanimationactivity.cxx | 9 ++++++--- |
9 |
1 file changed, 6 insertions(+), 3 deletions(-) |
10 |
|
11 |
diff --git a/slideshow/source/engine/shapes/intrinsicanimationactivity.cxx b/slideshow/source/engine/shapes/intrinsicanimationactivity.cxx |
12 |
index ba1d481..0eddcdc 100644 |
13 |
--- a/slideshow/source/engine/shapes/intrinsicanimationactivity.cxx |
14 |
+++ b/slideshow/source/engine/shapes/intrinsicanimationactivity.cxx |
15 |
@@ -177,12 +177,16 @@ namespace slideshow |
16 |
return false; |
17 |
} |
18 |
|
19 |
+ const ::std::size_t nNumFrames(maTimeouts.size()); |
20 |
+ |
21 |
// mnNumLoops == 0 means infinite looping |
22 |
if( mnNumLoops != 0 && |
23 |
mnLoopCount >= mnNumLoops ) |
24 |
{ |
25 |
- // #i55294# After finishing the loops, display the first frame |
26 |
- pDrawShape->setIntrinsicAnimationFrame( 0 ); |
27 |
+ // #i55294# After finishing the loops, display the last frame |
28 |
+ // powerpoint 2013 and firefox etc show the last frame when |
29 |
+ // the animation ends |
30 |
+ pDrawShape->setIntrinsicAnimationFrame(nNumFrames - 1); |
31 |
maContext.mpSubsettableShapeManager->notifyShapeUpdate( pDrawShape ); |
32 |
|
33 |
end(); |
34 |
@@ -191,7 +195,6 @@ namespace slideshow |
35 |
} |
36 |
|
37 |
::std::size_t nNewIndex = 0; |
38 |
- const ::std::size_t nNumFrames(maTimeouts.size()); |
39 |
switch( meCycleMode ) |
40 |
{ |
41 |
case CYCLE_LOOP: |
42 |
-- |
43 |
2.9.3 |
44 |
|