Commit c967c3e1 authored by Sergey Luzyanin's avatar Sergey Luzyanin

Баг перемещением объекта из группы в левый верхний угол

parent bc22d96a
......@@ -2735,6 +2735,8 @@ CShape.prototype =
xfrm.extY = 5;
}
}
var scale_scale_coefficients = this.group.getResultScaleCoefficients();
this.x = scale_scale_coefficients.cx * (xfrm.offX - this.group.spPr.xfrm.chOffX);
this.y = scale_scale_coefficients.cy * (xfrm.offY - this.group.spPr.xfrm.chOffY);
......@@ -3022,6 +3024,16 @@ CShape.prototype =
if (isRealObject(this.group)) {
global_MatrixTransformer.MultiplyAppend(transform, this.group.getLocalTransform());
}
var oParaDrawing = getParaDrawing(this);
if(oParaDrawing) {
this.m_oSectPr = null;
var oParentParagraph = oParaDrawing.Get_ParentParagraph();
if (oParentParagraph) {
var oSectPr = oParentParagraph.Get_SectPr();
this.m_oSectPr = new CSectionPr();
this.m_oSectPr.Copy(oSectPr);
}
}
this.localTransform = transform;
this.transform = transform;
},
......
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