Commit ab645d8f authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

проверка на выход за пределы листа при добавлении и изменении размеров автофигуры

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57125 954022d7-b5bf-4e40-9824-e11837661b57
parent e8514f69
......@@ -47,6 +47,14 @@ StartAddNewShape.prototype =
{
History.Create_NewPoint();
var shape = this.drawingObjects.arrTrackObjects[0].getShape(false, this.drawingObjects.getDrawingDocument(), this.drawingObjects.drawingObjects);
if(shape.spPr.xfrm.offX < 0)
{
shape.spPr.xfrm.setOffX(0);
}
if(shape.spPr.xfrm.offY < 0)
{
shape.spPr.xfrm.setOffY(0);
}
shape.setWorksheet(this.drawingObjects.drawingObjects.getWorksheetModel());
shape.addToDrawingObjects();
this.drawingObjects.checkChartTextSelection();
......@@ -307,6 +315,7 @@ RotateState.prototype =
arr_x.length = 0;
arr_y.length = 0;
drawing = oThis.drawingObjects.selectedObjects[i];
drawing.recalculateTransform();
transform = drawing.transform;
arr_x.push(transform.TransformPointX(0, 0));
arr_y.push(transform.TransformPointY(0, 0));
......
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