diff options
-rw-r--r-- | sd/source/ui/slideshow/slideshowimpl.cxx | 4 |
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) ) { |