Commit 2ee5c98f authored by Oleg Korshul's avatar Oleg Korshul Committed by Alexander.Trofimov

попрвлено зацикливание.

parent 558aa3ca
......@@ -3123,20 +3123,17 @@ function CDemonstrationManager(htmlpage)
if (!_is_transition)
this.SlideNum++;
if (this.SlideNum >= this.SlidesCount)
{
if (this.HtmlPage.m_oApi.WordControl.m_oLogicDocument.isLoopShowMode())
if (this.HtmlPage.m_oApi.WordControl.m_oLogicDocument.isLoopShowMode() && (this.SlideNum >= this.SlidesCount))
this.SlideNum = 0;
if (this.SlideNum > this.SlidesCount)
this.End();
else
{
this.End();
return;
}
}
this.HtmlPage.m_oApi.sync_DemonstrationSlideChanged(this.SlideNum);
this.StartSlide(!_is_transition, false);
}
}
this.PrevSlide = function()
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment