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

Поправил падение при копировании нескольких автофигур через Ctrl

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57283 954022d7-b5bf-4e40-9824-e11837661b57
parent 1986693b
......@@ -576,16 +576,22 @@ RotateState.prototype =
{
History.Create_NewPoint();
this.drawingObjects.resetSelection();
var arr_para_drawings = [], para_drawing ;
for(i = 0; i < this.drawingObjects.arrTrackObjects.length; ++i)
{
var para_drawing = this.drawingObjects.arrTrackObjects[i].originalObject.parent.Copy();
para_drawing = this.drawingObjects.arrTrackObjects[i].originalObject.parent.Copy();
para_drawing.Set_GraphicObject(this.drawingObjects.arrTrackObjects[i].originalObject.copy());
para_drawing.GraphicObj.setParent(para_drawing);
bounds = arr_bounds[i];
para_drawing.Set_XYForAdd(bounds.min_x, bounds.min_y, arr_nearest_pos[i], pageIndex);
para_drawing.Add_ToDocument(arr_nearest_pos[i], false);
arr_para_drawings.push(para_drawing);
this.drawingObjects.selectObject(para_drawing.GraphicObj, pageIndex);
}
for(i = 0; i < this.drawingObjects.arrTrackObjects.length; ++i)
{
para_drawing = arr_para_drawings[i];
para_drawing.Add_ToDocument(arr_nearest_pos[i], false);
}
}
this.drawingObjects.document.Recalculate();
}
......
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