Commit 83d09cb5 authored by SergeyLuzyanin's avatar SergeyLuzyanin

correct select rect position

parent 80166697
......@@ -1219,14 +1219,15 @@ ParaDrawing.prototype.updatePosition3 = function(pageIndex, x, y, oldPageNum)
this.bNoNeedToAdd = true;
}
this.selectX = x;
this.selectY = y;
if (this.GraphicObj.bNeedUpdatePosition || !(AscFormat.isRealNumber(this.GraphicObj.posX) && AscFormat.isRealNumber(this.GraphicObj.posY)) || !(Math.abs(this.GraphicObj.posX - _x) < MOVE_DELTA && Math.abs(this.GraphicObj.posY - _y) < MOVE_DELTA))
this.GraphicObj.updatePosition(_x, _y);
if (this.GraphicObj.bNeedUpdatePosition || !(AscFormat.isRealNumber(this.wrappingPolygon.posX) && AscFormat.isRealNumber(this.wrappingPolygon.posY)) || !(Math.abs(this.wrappingPolygon.posX - _x) < MOVE_DELTA && Math.abs(this.wrappingPolygon.posY - _y) < MOVE_DELTA))
this.wrappingPolygon.updatePosition(_x, _y);
this.selectX = this.GraphicObj.bounds.l + _x;
this.selectY = this.GraphicObj.bounds.t + _y;
this.calculateSnapArrays();
};
ParaDrawing.prototype.calculateAfterChangeTheme = function()
......
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