Commit 3ecda4fa authored by Sergey Luzyanin's avatar Sergey Luzyanin

В историю добавлялись изменения на копировании

parent 7cbb104d
...@@ -1716,21 +1716,23 @@ CopyProcessor.prototype = ...@@ -1716,21 +1716,23 @@ CopyProcessor.prototype =
var oDrawingCopyObject = selectedContent.Drawings[i]; var oDrawingCopyObject = selectedContent.Drawings[i];
var sp = oDrawingCopyObject.Drawing; var sp = oDrawingCopyObject.Drawing;
if(!sp.spPr) AscFormat.ExecuteNoHistory(function(){
{ if(!sp.spPr)
sp.setSpPr(new AscFormat.CSpPr()); {
} sp.setSpPr(new AscFormat.CSpPr());
if(!sp.spPr.xfrm) }
{ if(!sp.spPr.xfrm)
sp.spPr.setXfrm(new AscFormat.CXfrm()); {
} sp.spPr.setXfrm(new AscFormat.CXfrm());
if(!sp.spPr.xfrm.isNotNull()) }
{ if(!sp.spPr.xfrm.isNotNull())
sp.spPr.xfrm.setOffX(oDrawingCopyObject.X); {
sp.spPr.xfrm.setOffY(oDrawingCopyObject.Y); sp.spPr.xfrm.setOffX(oDrawingCopyObject.X);
sp.spPr.xfrm.setExtX(oDrawingCopyObject.ExtX); sp.spPr.xfrm.setOffY(oDrawingCopyObject.Y);
sp.spPr.xfrm.setExtY(oDrawingCopyObject.ExtY); sp.spPr.xfrm.setExtX(oDrawingCopyObject.ExtX);
} sp.spPr.xfrm.setExtY(oDrawingCopyObject.ExtY);
}
}, this, []);
} }
this.CopyDocument2(this.oRoot, oDocument, selectedContent); this.CopyDocument2(this.oRoot, oDocument, selectedContent);
......
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