From 89687d651eabcf64816c1b25defe38c7b68dd468 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 27 Oct 2016 14:49:43 +0200 Subject: loplugin:expandablemethods in sd Change-Id: I87a537928bdf42285448bba7cb50c497f2637c3c Reviewed-on: https://gerrit.libreoffice.org/30330 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- sd/source/ui/animations/SlideTransitionPane.cxx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'sd/source/ui/animations/SlideTransitionPane.cxx') 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 aLink( LINK(this,SlideTransitionPane,EventMultiplexerListener) ); -- cgit