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

Bug 25128 - Не копируется автофигура в группе через ctrl

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57077 954022d7-b5bf-4e40-9824-e11837661b57
parent 9220bbe0
......@@ -979,9 +979,26 @@ MoveInGroupState.prototype =
var old_x = this.group.bounds.x;
var old_y = this.group.bounds.y;
var i;
for(i = 0; i < this.drawingObjects.arrTrackObjects.length; ++i)
var tracks = this.drawingObjects.arrTrackObjects;
if(this instanceof MoveInGroupState && e.CtrlKey)
{
this.drawingObjects.arrTrackObjects[i].trackEnd(true);
this.group.resetSelection();
for(i = 0; i < tracks.length; ++i)
{
var copy = tracks[i].originalObject.copy();
copy.setGroup(tracks[i].originalObject.group);
copy.group.addToSpTree(copy.group.length, copy);
tracks[i].originalObject = copy;
tracks[i].trackEnd(true);
this.group.selectObject(copy, 0);
}
}
else
{
for(i = 0; i < this.drawingObjects.arrTrackObjects.length; ++i)
{
this.drawingObjects.arrTrackObjects[i].trackEnd(true);
}
}
this.group.updateCoordinatesAfterInternalResize();
this.group.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