Commit dd4e9b07 authored by SergeyLuzyanin's avatar SergeyLuzyanin

fix Bug 34920

parent f76b9081
......@@ -168,6 +168,16 @@
};
CNotes.prototype.getAllFonts = function(fonts)
{
var i;
for(i = 0; i < this.cSld.spTree.length; ++i)
{
if(typeof this.cSld.spTree[i].getAllFonts === "function")
this.cSld.spTree[i].getAllFonts(fonts);
}
};
function CreateNotes(){
var oN = new CNotes();
var oSp = new AscFormat.CShape();
......
......@@ -125,6 +125,29 @@
this.notesLst.splice(_pos, 0, pr);
};
CNotesMaster.prototype.getAllFonts = function(fonts)
{
var i;
if(this.Theme){
this.Theme.Document_Get_AllFontNames(fonts);
}
if(this.txStyles){
this.txStyles.Document_Get_AllFontNames(fonts);
}
for(i = 0; i < this.notesLst.length; ++i){
this.notesLst[i].getAllFonts(fonts);
}
for(i = 0; i < this.cSld.spTree.length; ++i)
{
if(typeof this.cSld.spTree[i].getAllFonts === "function")
this.cSld.spTree[i].getAllFonts(fonts);
}
};
function CreateNotesMaster(){
var oNM = new CNotesMaster();
var oBG = new AscFormat.CBg();
......
......@@ -3645,6 +3645,15 @@ CPresentation.prototype =
{
this.globalTableStyles.Document_Get_AllFontNames(AllFonts);
}
for(var i = 0; i < this.notesMasters.length; ++i)
{
this.notesMasters[i].getAllFonts(AllFonts);
}
for(var i = 0; i < this.notes.length; ++i)
{
this.notes[i].getAllFonts(AllFonts);
}
delete AllFonts["+mj-lt"];
delete AllFonts["+mn-lt"];
delete AllFonts["+mj-ea"];
......
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