Commit 16b904f5 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin

правка бага 21913 - [CoEdit] Пропадает группа автофигур, после добавления к ней новой фигуры

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51380 954022d7-b5bf-4e40-9824-e11837661b57
parent 1304a60a
......@@ -226,6 +226,10 @@ CGroupShape.prototype =
setGroup: function(group)
{
var oldId = isRealObject(this.group) ? this.group.Get_Id() : null;
var newId = isRealObject(group) ? group.Get_Id() : null;
History.Add(g_oUndoRedoGraphicObjects, historyitem_AutoShapes_SetGroup, null, null,
new UndoRedoDataGraphicObjects(this.Get_Id(), new UndoRedoDataGOSingleProp(oldId, newId)));
this.group = group;
},
......@@ -1553,6 +1557,11 @@ CGroupShape.prototype =
{
switch(type)
{
case historyitem_AutoShapes_SetGroup:
{
this.group = g_oTableId.Get_ById(data.oldValue);
break;
}
case historyitem_AutoShapes_AddToSpTree:
{
for(var i = this.spTree.length -1; i > -1; --i)
......@@ -1621,6 +1630,11 @@ CGroupShape.prototype =
{
switch(type)
{
case historyitem_AutoShapes_SetGroup:
{
this.group = g_oTableId.Get_ById(data.newValue);
break;
}
case historyitem_AutoShapes_AddToSpTree:
{
this.spTree.push(g_oTableId.Get_ById(data.oldValue));
......
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