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

Bug 28010 - [CoEdit] Нарушается порядок графических объектов при одновременном...

Bug 28010 - [CoEdit] Нарушается порядок графических объектов при одновременном добавлении и синхронизации 

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60288 954022d7-b5bf-4e40-9824-e11837661b57
parent d55b8cef
......@@ -592,12 +592,14 @@ Slide.prototype =
}
case historyitem_SlideAddToSpTree:
{
writeLong(w, data.Pos);
var Pos = data.UseArray ? data.PosArray[0] : data.Pos;
writeLong(w, Pos);
writeObject(w, data.Item);
break;
}
case historyitem_SlideRemoveFromSpTree:
{
var Pos = data.UseArray ? data.PosArray[0] : data.Pos;
writeLong(w, data.Pos);
break;
}
......@@ -696,13 +698,18 @@ Slide.prototype =
{
var Pos = readLong(r);
var Item = readObject(r);
this.cSld.spTree.splice(Pos, 0, Item);
var ChangesPos = this.m_oContentChanges.Check( contentchanges_Add, Pos );
this.cSld.spTree.splice(ChangesPos, 0, Item);
break;
}
case historyitem_SlideRemoveFromSpTree:
{
var Pos = readLong(r);
this.cSld.spTree.splice(Pos, 1);
var ChangesPos = this.m_oContentChanges.Check( contentchanges_Remove, Pos );
if(!(ChangesPos === false))
{
this.cSld.spTree.splice(ChangesPos, 1);
}
break;
}
case historyitem_SlideSetCSldName:
......
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