diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-27 14:49:43 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-28 07:08:47 +0000 |
commit | 89687d651eabcf64816c1b25defe38c7b68dd468 (patch) | |
tree | aa7e6f0848424d408a992815feab4f3e6ee6495d /sd/source/ui/slideshow/slideshow.cxx | |
parent | 24360897c05da1ff7c4854ba192eb98466f4499b (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/slideshow/slideshow.cxx')
-rw-r--r-- | sd/source/ui/slideshow/slideshow.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sd/source/ui/slideshow/slideshow.cxx b/sd/source/ui/slideshow/slideshow.cxx index 1a927542f1f0..9f18403b9d1e 100644 --- a/sd/source/ui/slideshow/slideshow.cxx +++ b/sd/source/ui/slideshow/slideshow.cxx @@ -671,7 +671,8 @@ void SAL_CALL SlideShow::end() WorkWindow* pWorkWindow = dynamic_cast<WorkWindow*>(pShell->GetViewFrame()->GetTopFrame().GetWindow().GetParent()); if( pWorkWindow ) { - pWorkWindow->StartPresentationMode( isAlwaysOnTop() ? PresentationFlags::HideAllApps : PresentationFlags::NONE ); + pWorkWindow->StartPresentationMode( (mxController.is() && mxController->maPresSettings.mbAlwaysOnTop) + ? PresentationFlags::HideAllApps : PresentationFlags::NONE ); } } } @@ -994,11 +995,6 @@ void SlideShow::paint( const Rectangle& rRect ) mxController->paint( rRect ); } -bool SlideShow::isAlwaysOnTop() -{ - return mxController.is() && mxController->maPresSettings.mbAlwaysOnTop; -} - void SlideShow::pause( bool bPause ) { if( mxController.is() ) |