Commit cdc8c4d7 authored by SergeyLuzyanin's avatar SergeyLuzyanin

fix Bug 35684

parent 3375be62
......@@ -718,10 +718,7 @@ function BinaryPPTYLoader()
this.presentation.slideMasters[0].sldLayoutLst[0] = AscFormat.GenerateDefaultSlideLayout(this.presentation.slideMasters[0]);
this.presentation.slideLayouts[0] = this.presentation.slideMasters[0].sldLayoutLst[0];
}
if (this.presentation.Slides.length == 0)
{
this.presentation.Slides[0] = AscFormat.GenerateDefaultSlide(this.presentation.slideLayouts[0]);
}
if(this.presentation.notesMasters.length === 0)
{
this.presentation.notesMasters[0] = AscCommonSlide.CreateNotesMaster();
......@@ -730,6 +727,10 @@ function BinaryPPTYLoader()
this.presentation.themes.push(oNotesTheme);
this.presentation.notesMasters[0].setTheme(oNotesTheme);
}
if (this.presentation.Slides.length == 0)
{
this.presentation.Slides[0] = AscFormat.GenerateDefaultSlide(this.presentation.slideLayouts[0]);
}
var _slides = this.presentation.Slides;
var _slide;
for(var i = 0; i < _slides.length; ++i)
......
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