ardovm commented on code in PR #200:
URL: https://github.com/apache/openoffice/pull/200#discussion_r1463061431
##########
main/sd/source/ui/slideshow/slideshowimpl.cxx:
##########
@@ -236,6 +236,17 @@ AnimationSlideController::AnimationSlideController(
Reference< XIndexAccess > xS
mnSlideCount = xSlides->getCount();
}
+void AnimationSlideController::setStartSlideNumber( sal_Int32 nSlideNumber )
+{
+ while( ( !maSlideVisible[nSlideNumber] )
+ || ( nSlideNumber > maSlideVisible.size() ) )
nSlideNumber++;
+
+ if(nSlideNumber > maSlideVisible.size())
+ mnStartSlideNumber = 0;
Review Comment:
Should all these checks: `(nSlideNumber > maSlideVisible.size())` be `>=`
instead of `>`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]