From 258223b5ae44de7d07732616bbc3e73c3de04f05 Mon Sep 17 00:00:00 2001 From: SergeyLuzyanin Date: Fri, 18 Jan 2019 11:54:57 +0300 Subject: [PATCH] [fields] Copy from presentation to document --- word/Editor/PresentationField.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/word/Editor/PresentationField.js b/word/Editor/PresentationField.js index 270864789d..3044a01539 100644 --- a/word/Editor/PresentationField.js +++ b/word/Editor/PresentationField.js @@ -49,8 +49,12 @@ CPresentationField.prototype.constructor = CPresentationField; - CPresentationField.prototype.Copy = function() + CPresentationField.prototype.Copy = function(Selected, oPr) { + if(oPr && oPr.Paragraph && oPr.Paragraph.bFromDocument) + { + return ParaRun.prototype.Copy.call(this, Selected, oPr); + } var Field = new CPresentationField(this.Paragraph); Field.Set_Pr( this.Pr.Copy() ); Field.SetGuid( '{' + AscCommon.GUID() + '}');