Commit 51e53397 authored by Dmitry.Vikulov's avatar Dmitry.Vikulov Committed by Alexander.Trofimov

Fix Bug 20601 - [CoEdit] При получении и разгруппировке группы автофигур одна...

Fix Bug 20601 - [CoEdit] При получении и разгруппировке группы автофигур одна из фигур становится залоченной

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51268 954022d7-b5bf-4e40-9824-e11837661b57
parent 48233793
......@@ -951,14 +951,26 @@ DrawingObjectsController.prototype =
cur_group.deleteDrawingBase();
var ungrouped_sp_tree = ungrouped_objects[i].getUnGroupedSpTree();
// Блокируем дочерние объекты
var _this = this;
this.drawingObjects.objectLocker.reset();
function callbackUngroupedObjects(result) {
if ( result ) {
for (var j = 0; j < ungrouped_sp_tree.length; ++j) {
ungrouped_sp_tree[j].recalculateTransform();
History.Add(g_oUndoRedoGraphicObjects, historyitem_AutoShapes_RecalculateTransformUndo, null, null, new UndoRedoDataGraphicObjects(ungrouped_sp_tree[j].Get_Id(), new UndoRedoDataGOSingleProp(null, null)));
ungrouped_sp_tree[j].addToDrawingObjects(start_position + j);
ungrouped_sp_tree[j].select(_this);
}
}
}
for(var j = 0; j < ungrouped_sp_tree.length; ++j)
{
ungrouped_sp_tree[j].recalculateTransform();
History.Add(g_oUndoRedoGraphicObjects, historyitem_AutoShapes_RecalculateTransformUndo, null, null,
new UndoRedoDataGraphicObjects(ungrouped_sp_tree[j].Get_Id(), new UndoRedoDataGOSingleProp(null, null)));
ungrouped_sp_tree[j].addToDrawingObjects(start_position + j);
ungrouped_sp_tree[j].select(this);
this.drawingObjects.objectLocker.addObjectId(ungrouped_sp_tree[j].Get_Id());
}
this.drawingObjects.objectLocker.checkObjects(callbackUngroupedObjects);
}
this.changeCurrentState(new NullState(this, this.drawingObjects));
this.drawingObjects.OnUpdateOverlay();
......
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