Commit 1b9c1519 authored by SergeyLuzyanin's avatar SergeyLuzyanin

fix bug with broken presentation

parent 728a2510
......@@ -725,7 +725,10 @@ function BinaryPPTYLoader()
if(this.presentation.notesMasters.length === 0)
{
this.presentation.notesMasters[0] = AscCommonSlide.CreateNotesMaster();
this.presentation.notesMasters[0].setTheme(this.presentation.themes[0]);
var oNotesTheme = this.presentation.themes[0].createDuplicate();
oNotesTheme.presentation = this.presentation;
this.presentation.themes.push(oNotesTheme);
this.presentation.notesMasters[0].setTheme(oNotesTheme);
}
var _slides = this.presentation.Slides;
var _slide;
......
......@@ -338,7 +338,7 @@
oCNvPr.setName("Notes Placeholder 2");
oPh = new AscFormat.Ph();
oPh.setType(AscFormat.phType_body);
oPh.setIdx(1);
oPh.setIdx(1 + "");
oNvSpPr.nvPr.setPh(oPh);
oSp.setNvSpPr(oNvSpPr);
oSp.setLockValue(AscFormat.LOCKS_MASKS.noGrp, true);
......@@ -361,7 +361,7 @@
oPh = new AscFormat.Ph();
oPh.setType(AscFormat.phType_sldNum);
oPh.setSz(2);
oPh.setIdx(10);
oPh.setIdx(10 + "");
oNvSpPr.nvPr.setPh(oPh);
oSp.setNvSpPr(oNvSpPr);
oSp.setLockValue(AscFormat.LOCKS_MASKS.noGrp, true);
......
......@@ -216,7 +216,7 @@
oCNvPr.setName("Date Placeholder 2");
oPh = new AscFormat.Ph();
oPh.setType(AscFormat.phType_dt);
oPh.setIdx(1);
oPh.setIdx(2 + "");
oNvSpPr.nvPr.setPh(oPh);
oSp.setNvSpPr(oNvSpPr);
oSp.setLockValue(AscFormat.LOCKS_MASKS.noGrp, true);
......@@ -258,7 +258,7 @@
oCNvPr.setName("Date Placeholder 2");
oPh = new AscFormat.Ph();
oPh.setType(AscFormat.phType_dt);
oPh.setIdx(1);
oPh.setIdx(3 + "");
oNvSpPr.nvPr.setPh(oPh);
oSp.setNvSpPr(oNvSpPr);
oSp.setLockValue(AscFormat.LOCKS_MASKS.noGrp, true);
......@@ -300,7 +300,7 @@
oCNvPr.setName("Notes Placeholder 4");
oPh = new AscFormat.Ph();
oPh.setType(AscFormat.phType_body);
oPh.setIdx(1);
oPh.setIdx(1 + "");
oPh.setSz(2);
oNvSpPr.nvPr.setPh(oPh);
oSp.setNvSpPr(oNvSpPr);
......@@ -339,7 +339,7 @@
oCNvPr.setName("Footer Placeholder 5");
oPh = new AscFormat.Ph();
oPh.setType(AscFormat.phType_ftr);
oPh.setIdx(4);
oPh.setIdx(4 + "");
oPh.setSz(2);
oNvSpPr.nvPr.setPh(oPh);
oSp.setNvSpPr(oNvSpPr);
......@@ -382,7 +382,7 @@
oCNvPr.setName("Slide Number Placeholder 6");
oPh = new AscFormat.Ph();
oPh.setType(AscFormat.phType_sldNum);
oPh.setIdx(5);
oPh.setIdx(10 + "");
oPh.setSz(2);
oNvSpPr.nvPr.setPh(oPh);
oSp.setNvSpPr(oNvSpPr);
......
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