Skip to content

Commit

Permalink
[pe] fix crash in coauthoring
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyLuzyanin committed Nov 28, 2024
1 parent 4073ce3 commit c9d3931
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions slide/Editor/Format/Presentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -7348,6 +7348,10 @@ CPresentation.prototype.Load_DocumentStateAfterLoadChanges = function (oState) {

this.CollaborativeEditing.UpdateDocumentPositionsByState(oState);
let oCurSlide = this.GetCurrentSlide();
if(!oCurSlide) {
this.DrawingDocument.m_oWordControl.GoToPage(this.GetSlidesCount() - 1);
return;
}
if (oState.Slide) {
var oSlide = oState.Slide;
if (oSlide !== oCurSlide) {
Expand Down

0 comments on commit c9d3931

Please sign in to comment.