Commit 69e415be authored by Sergey Luzyanin's avatar Sergey Luzyanin

Revert "добавлен параметр, отвечающий за зацикливание презентации в режиме просмотра"

This reverts commit 305a138b.
parent 9917fa89
...@@ -5223,14 +5223,7 @@ background-repeat: no-repeat;\ ...@@ -5223,14 +5223,7 @@ background-repeat: no-repeat;\
} }
} }
if(slide.timing){ obj.Timing = slide.timing;
obj.Timing = slide.timing.createDuplicate();
}
else{
obj.Timing = Asc.CAscSlideTiming();
}
obj.Timing.ShowLoop = this.WordControl.m_oLogicDocument.isLoopShowMode();
obj.lockDelete = !(slide.deleteLock.Lock.Type === locktype_Mine || slide.deleteLock.Lock.Type === locktype_None); obj.lockDelete = !(slide.deleteLock.Lock.Type === locktype_Mine || slide.deleteLock.Lock.Type === locktype_None);
obj.lockLayout = !(slide.layoutLock.Lock.Type === locktype_Mine || slide.layoutLock.Lock.Type === locktype_None); obj.lockLayout = !(slide.layoutLock.Lock.Type === locktype_Mine || slide.layoutLock.Lock.Type === locktype_None);
obj.lockTiming = !(slide.timingLock.Lock.Type === locktype_Mine || slide.timingLock.Lock.Type === locktype_None); obj.lockTiming = !(slide.timingLock.Lock.Type === locktype_Mine || slide.timingLock.Lock.Type === locktype_None);
...@@ -5653,11 +5646,6 @@ background-repeat: no-repeat;\ ...@@ -5653,11 +5646,6 @@ background-repeat: no-repeat;\
return; return;
var _curSlide = this.WordControl.m_oLogicDocument.Slides[_cur]; var _curSlide = this.WordControl.m_oLogicDocument.Slides[_cur];
_curSlide.applyTiming(oTiming); _curSlide.applyTiming(oTiming);
if(oTiming){
if(AscFormat.isRealBool(oTiming.get_ShowLoop()) && oTiming.get_ShowLoop() !== this.WordControl.m_oLogicDocument.isLoopShowMode()){
this.WordControl.m_oLogicDocument.setShowLoop(oTiming.get_ShowLoop());
}
}
} }
this.WordControl.m_oLogicDocument.Document_UpdateInterfaceState(); this.WordControl.m_oLogicDocument.Document_UpdateInterfaceState();
}; };
......
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