Commit a464afed authored by Ilya.Kirillov's avatar Ilya.Kirillov

Исправлен баг с принятием/отклонением изменений, при котором удаляются все...

Исправлен баг с принятием/отклонением изменений, при котором удаляются все элементы из родительского класса рана (баг 31038).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66577 954022d7-b5bf-4e40-9824-e11837661b57
parent 01bcff63
...@@ -10302,7 +10302,11 @@ ParaRun.prototype.Accept_RevisionChanges = function(Type, bAll) ...@@ -10302,7 +10302,11 @@ ParaRun.prototype.Accept_RevisionChanges = function(Type, bAll)
Parent.Remove_FromContent(CenterRunPos, 1); Parent.Remove_FromContent(CenterRunPos, 1);
if (Parent.Get_ContentLength() <= 0) if (Parent.Get_ContentLength() <= 0)
{
Parent.Selection_Remove();
Parent.Add_ToContent(0, new ParaRun()); Parent.Add_ToContent(0, new ParaRun());
Parent.Cursor_MoveToStartPos();
}
} }
} }
}; };
...@@ -10366,7 +10370,11 @@ ParaRun.prototype.Reject_RevisionChanges = function(Type, bAll) ...@@ -10366,7 +10370,11 @@ ParaRun.prototype.Reject_RevisionChanges = function(Type, bAll)
Parent.Remove_FromContent(CenterRunPos, 1); Parent.Remove_FromContent(CenterRunPos, 1);
if (Parent.Get_ContentLength() <= 0) if (Parent.Get_ContentLength() <= 0)
{
Parent.Selection_Remove();
Parent.Add_ToContent(0, new ParaRun()); Parent.Add_ToContent(0, new ParaRun());
Parent.Cursor_MoveToStartPos();
}
} }
else if (reviewtype_Remove === ReviewType && (undefined === Type || c_oAscRevisionsChangeType.TextRem === Type)) else if (reviewtype_Remove === ReviewType && (undefined === Type || c_oAscRevisionsChangeType.TextRem === Type))
{ {
......
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