summaryrefslogtreecommitdiff
path: root/sd/source/ui/animations/SlideTransitionPane.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-10-27 14:49:43 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-28 07:08:47 +0000
commit89687d651eabcf64816c1b25defe38c7b68dd468 (patch)
treeaa7e6f0848424d408a992815feab4f3e6ee6495d /sd/source/ui/animations/SlideTransitionPane.cxx
parent24360897c05da1ff7c4854ba192eb98466f4499b (diff)
loplugin:expandablemethods in sd
Change-Id: I87a537928bdf42285448bba7cb50c497f2637c3c Reviewed-on: https://gerrit.libreoffice.org/30330 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/animations/SlideTransitionPane.cxx')
-rw-r--r--sd/source/ui/animations/SlideTransitionPane.cxx12
1 files changed, 2 insertions, 10 deletions
diff --git a/sd/source/ui/animations/SlideTransitionPane.cxx b/sd/source/ui/animations/SlideTransitionPane.cxx
index b80be66e0fca..dc65fdde43da 100644
--- a/sd/source/ui/animations/SlideTransitionPane.cxx
+++ b/sd/source/ui/animations/SlideTransitionPane.cxx
@@ -925,8 +925,8 @@ void SlideTransitionPane::applyToSelectedPages(bool bPreview = true)
{
if (aEffect.mnType) // mnType = 0 denotes no transition
playCurrentEffect();
- else
- stopEffects();
+ else if( mxView.is() )
+ SlideShow::Stop( mrBase );
}
if (pFocusWindow)
@@ -944,14 +944,6 @@ void SlideTransitionPane::playCurrentEffect()
}
}
-void SlideTransitionPane::stopEffects()
-{
- if( mxView.is() )
- {
- SlideShow::Stop( mrBase );
- }
-}
-
void SlideTransitionPane::addListener()
{
Link<tools::EventMultiplexerEvent&,void> aLink( LINK(this,SlideTransitionPane,EventMultiplexerListener) );