Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/2933

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/33/2933/1

After presentation is finished always have previous go to last shown slide

Change-Id: Ibb9db34523731f363612bd5f2306372380bb2fae
---
M sd/source/ui/slideshow/slideshowimpl.cxx
1 file changed, 1 insertion(+), 3 deletions(-)



diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx 
b/sd/source/ui/slideshow/slideshowimpl.cxx
index 88f282a..7881730 100644
--- a/sd/source/ui/slideshow/slideshowimpl.cxx
+++ b/sd/source/ui/slideshow/slideshowimpl.cxx
@@ -3266,9 +3266,7 @@
         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) )
         {

-- 
To view, visit https://gerrit.libreoffice.org/2933
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibb9db34523731f363612bd5f2306372380bb2fae
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Rob Snelders <libreoff...@ertai.nl>

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to