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

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

parent 558aa3ca
...@@ -3123,19 +3123,16 @@ function CDemonstrationManager(htmlpage) ...@@ -3123,19 +3123,16 @@ function CDemonstrationManager(htmlpage)
if (!_is_transition) if (!_is_transition)
this.SlideNum++; this.SlideNum++;
if (this.SlideNum >= this.SlidesCount) if (this.HtmlPage.m_oApi.WordControl.m_oLogicDocument.isLoopShowMode() && (this.SlideNum >= this.SlidesCount))
this.SlideNum = 0;
if (this.SlideNum > this.SlidesCount)
this.End();
else
{ {
if (this.HtmlPage.m_oApi.WordControl.m_oLogicDocument.isLoopShowMode()) this.HtmlPage.m_oApi.sync_DemonstrationSlideChanged(this.SlideNum);
this.SlideNum = 0; this.StartSlide(!_is_transition, false);
else
{
this.End();
return;
}
} }
this.HtmlPage.m_oApi.sync_DemonstrationSlideChanged(this.SlideNum);
this.StartSlide(!_is_transition, false);
} }
this.PrevSlide = function() 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