summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorDaniel Lohmann <LibreOfficeContribution@dldld.de>2023-06-19 21:50:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-06-20 13:46:19 +0200
commitca90149fa3f7c8161393490d4c0149c1cbcc3c28 (patch)
treef2aa7bfa0f3d7a25f8dde91f941ca0fdabdbba0a /sd
parentb13733de130e2f1ca029315e977dc01bd196b05b (diff)
tdf#155920: next effect in END mode should no resume show
When starting a presentation and moving over the last slide into the END mode the next effect should not resume the presentation. Instead it should exit the presentation. Furthermore, when hitting then the back key it should show again the last slide (only resuming the presentation, not directly resuming and moving back to the slide before the last. Change-Id: I816232725d923601356e0bc8e39421f256d184eb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153302 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/slideshow/slideshowimpl.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx
index a9f16b86b8d4..01165afaecd7 100644
--- a/sd/source/ui/slideshow/slideshowimpl.cxx
+++ b/sd/source/ui/slideshow/slideshowimpl.cxx
@@ -2758,7 +2758,7 @@ void SAL_CALL SlideshowImpl::gotoNextEffect( )
if( !(mxShow.is() && mpSlideController && mpShowWindow) )
return;
- if( mbIsPaused )
+ if( mbIsPaused && mpShowWindow->GetShowWindowMode() != SHOWWINDOWMODE_END )
resume();
const ShowWindowMode eMode = mpShowWindow->GetShowWindowMode();
@@ -2784,13 +2784,10 @@ void SAL_CALL SlideshowImpl::gotoPreviousEffect( )
if( !(mxShow.is() && mpSlideController && mpShowWindow) )
return;
- if( mbIsPaused )
- resume();
-
const ShowWindowMode eMode = mpShowWindow->GetShowWindowMode();
- if( (eMode == SHOWWINDOWMODE_PAUSE) || (eMode == SHOWWINDOWMODE_BLANK) )
+ if( (eMode == SHOWWINDOWMODE_PAUSE) || (eMode == SHOWWINDOWMODE_BLANK) || mbIsPaused )
{
- mpShowWindow->RestartShow();
+ resume();
}
else
{