[Libreoffice-commits] core.git: sd/source
Rob Snelders
programming at ertai.nl
Sat Mar 23 09:05:12 PDT 2013
sd/source/ui/slideshow/slideshowimpl.cxx | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
New commits:
commit f804c72a090f8d5f170fed700ba7cf1826e5b3a2
Author: Rob Snelders <programming at 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.michaelsen at canonical.com>
Tested-by: Björn Michaelsen <bjoern.michaelsen at 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) )
{
More information about the Libreoffice-commits
mailing list