Date: prev next · Thread: first prev next last
2013 Archives by date, by thread · List index


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 <libreoffice@ertai.nl>


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.