sd/source/ui/slideshow/slideshowimpl.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit f804c72a090f8d5f170fed700ba7cf1826e5b3a2 Author: Rob Snelders <programm...@ertai.nl> Date: Sat Mar 23 16:11:25 2013 +0100 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.michael...@canonical.com> Tested-by: Björn Michaelsen <bjoern.michael...@canonical.com> diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx index 825bdf0..6737f63 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) ) {
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits