summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorRob Snelders <programming@ertai.nl>2013-03-23 16:11:25 +0100
committerBjörn Michaelsen <bjoern.michaelsen@canonical.com>2013-03-23 16:04:52 +0000
commitf804c72a090f8d5f170fed700ba7cf1826e5b3a2 (patch)
tree9a99e1fa0b464f9692bc6e839874cb3d3f8e2adc /sd
parent549030d96add56117bc35198d1303c059a8da21b (diff)
After presentation is finished always have previous go to last shown slide
Change-Id: Ibb9db34523731f363612bd5f2306372380bb2fae Reviewed-on: https://gerrit.libreoffice.org/2933 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/slideshow/slideshowimpl.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx
index 825bdf0e7d94..6737f63f79b6 100644
--- a/sd/source/ui/slideshow/slideshowimpl.cxx
+++ b/sd/source/ui/slideshow/slideshowimpl.cxx
@@ -3266,9 +3266,7 @@ void SlideshowImpl::gotoPreviousSlide (const bool bSkipAllMainSequenceEffects)
const ShowWindowMode eMode = mpShowWindow->GetShowWindowMode();
if( eMode == SHOWWINDOWMODE_END )
{
- const sal_Int32 nLastSlideIndex = mpSlideController->getSlideIndexCount() - 1;
- if( nLastSlideIndex >= 0 )
- mpShowWindow->RestartShow( nLastSlideIndex );
+ mpShowWindow->RestartShow( mpSlideController->getCurrentSlideIndex() );
}
else if( (eMode == SHOWWINDOWMODE_PAUSE) || (eMode == SHOWWINDOWMODE_BLANK) )
{