Commit 8bf9594d authored by GoshaZotov's avatar GoshaZotov

fix bug 34361

parent 03f625f4
......@@ -2215,7 +2215,8 @@ PasteProcessor.prototype =
},
ReadFromBinary : function(sBase64, oDocument)
{
var openParams = { checkFileSize: false, charCount: 0, parCount: 0, bCopyPaste: true };
var oDocumentParams = PasteElementsId.g_bIsDocumentCopyPaste ? this.oDocument : null;
var openParams = { checkFileSize: false, charCount: 0, parCount: 0, bCopyPaste: true, oDocument: oDocumentParams };
var doc = oDocument ? oDocument : this.oLogicDocument;
var oBinaryFileReader = new AscCommonWord.BinaryFileReader(doc, openParams);
var oRes = oBinaryFileReader.ReadFromString(sBase64, true);
......
......@@ -9188,6 +9188,9 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, curFoo
if (this.curFootnote) {
oNewElem = new ParaFootnoteRef(this.curFootnote);
}
else if(this.openParams && this.openParams.bCopyPaste && this.openParams.oDocument){
oNewElem = new ParaFootnoteRef(this.openParams.oDocument);
}
}
else if (c_oSerRunType.footnoteReference === type)
{
......
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