Commit 040ea926 authored by Sergey Luzyanin's avatar Sergey Luzyanin

fix Bug 34532

parent da4a1574
...@@ -4642,6 +4642,21 @@ CNvPr.prototype = ...@@ -4642,6 +4642,21 @@ CNvPr.prototype =
this.title = title; this.title = title;
}, },
setFromOther: function(oOther){
if(!oOther){
return;
}
if(oOther.name){
this.setName(oOther.name);
}
if(oOther.descr){
this.setDescr(oOther.descr);
}
if(oOther.title){
this.setTitle(oOther.title);
}
},
Write_ToBinary2: function (w) Write_ToBinary2: function (w)
{ {
w.WriteLong(this.getObjectType()); w.WriteLong(this.getObjectType());
......
...@@ -1511,7 +1511,7 @@ CGraphicObjects.prototype = ...@@ -1511,7 +1511,7 @@ CGraphicObjects.prototype =
drawing.GraphicObj.setParent(drawing); drawing.GraphicObj.setParent(drawing);
drawing.CheckWH(); drawing.CheckWH();
drawing.Set_ParaMath(selectedObjects[i].parent.ParaMath); drawing.Set_ParaMath(selectedObjects[i].parent.ParaMath);
drawing.docPr.setFromOther(selectedObjects[i].parent.docPr);
if(selectedObjects[i].parent.DrawingType === drawing_Anchor) if(selectedObjects[i].parent.DrawingType === drawing_Anchor)
{ {
drawing.Set_Distance(selectedObjects[i].parent.Distance.L, selectedObjects[i].parent.Distance.T, selectedObjects[i].parent.Distance.R, selectedObjects[i].parent.Distance.B); drawing.Set_Distance(selectedObjects[i].parent.Distance.L, selectedObjects[i].parent.Distance.T, selectedObjects[i].parent.Distance.R, selectedObjects[i].parent.Distance.B);
......
...@@ -1063,6 +1063,7 @@ ParaDrawing.prototype.Copy = function() ...@@ -1063,6 +1063,7 @@ ParaDrawing.prototype.Copy = function()
{ {
c.setEffectExtent(EE.L, EE.T, EE.R, EE.B); c.setEffectExtent(EE.L, EE.T, EE.R, EE.B);
} }
c.docPr.setFromOther(this.docPr);
if (this.ParaMath) if (this.ParaMath)
c.Set_ParaMath(this.ParaMath.Copy()); c.Set_ParaMath(this.ParaMath.Copy());
return c; return c;
......
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