Commit 21852413 authored by SergeyLuzyanin's avatar SergeyLuzyanin

fix Bug 35567

parent 0e45b7c4
......@@ -1265,7 +1265,10 @@ CPresentation.prototype =
this.DrawingDocument.OnRecalculatePage(i, this.Slides[i]);
}
bEndRecalc = (this.Slides.length > 0);
this.DrawingDocument.Notes_OnRecalculate(this.CurPage, this.Slides[this.CurPage].NotesWidth, this.Slides[this.CurPage].getNotesHeight());
if(this.Slides[this.CurPage]){
this.DrawingDocument.Notes_OnRecalculate(this.CurPage, this.Slides[this.CurPage].NotesWidth, this.Slides[this.CurPage].getNotesHeight());
}
}
else
{
......@@ -1277,7 +1280,9 @@ CPresentation.prototype =
bEndRecalc = (aToRedrawSlides.length > 0);
}
if(bRedrawNotes){
this.DrawingDocument.Notes_OnRecalculate(this.CurPage, this.Slides[this.CurPage].NotesWidth, this.Slides[this.CurPage].getNotesHeight());
if(this.Slides[this.CurPage]){
this.DrawingDocument.Notes_OnRecalculate(this.CurPage, this.Slides[this.CurPage].NotesWidth, this.Slides[this.CurPage].getNotesHeight());
}
}
if(bEndRecalc){
this.DrawingDocument.OnEndRecalculate();
......
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