Author: hanya
Date: Fri Jan 10 15:30:03 2014
New Revision: 1557152

URL: http://svn.apache.org/r1557152
Log:
#i97129# fix hidden slide shown when going back to previous slide from finish 
screen

Modified:
    openoffice/trunk/main/sd/source/ui/slideshow/slideshowimpl.cxx

Modified: openoffice/trunk/main/sd/source/ui/slideshow/slideshowimpl.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/sd/source/ui/slideshow/slideshowimpl.cxx?rev=1557152&r1=1557151&r2=1557152&view=diff
==============================================================================
--- openoffice/trunk/main/sd/source/ui/slideshow/slideshowimpl.cxx (original)
+++ openoffice/trunk/main/sd/source/ui/slideshow/slideshowimpl.cxx Fri Jan 10 
15:30:03 2014
@@ -3381,7 +3381,7 @@ void SlideshowImpl::gotoPreviousSlide (c
                const ShowWindowMode eMode = mpShowWindow->GetShowWindowMode();
                if( eMode == SHOWWINDOWMODE_END )
                {
-                       const sal_Int32 nLastSlideIndex = 
mpSlideController->getSlideIndexCount() - 1;
+                       const sal_Int32 nLastSlideIndex = 
mpSlideController->getCurrentSlideIndex();
                        if( nLastSlideIndex >= 0 )
                                mpShowWindow->RestartShow( nLastSlideIndex );
                }


Reply via email to