Commit 592b46d5 authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Исправлен баг с лишними пересчетами при удалении таблицы в режиме рецензирования (баг 31017).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66560 954022d7-b5bf-4e40-9824-e11837661b57
parent 1c63d2a8
...@@ -3724,10 +3724,14 @@ CDocument.prototype = ...@@ -3724,10 +3724,14 @@ CDocument.prototype =
if (true === this.Is_TrackRevisions()) if (true === this.Is_TrackRevisions())
{ {
// Если есть параграфы, которые были добавлены во время рецензирования, тогда мы их удаляем // Если есть параграфы, которые были добавлены во время рецензирования, тогда мы их удаляем
// TODO: Надо убрать вызовы пересчета изнутри документа
this.TurnOff_Recalculate();
for (var Index = StartPos; Index <= EndPos; Index++) for (var Index = StartPos; Index <= EndPos; Index++)
{ {
this.Content[Index].Remove(1, true); this.Content[Index].Remove(1, true);
} }
this.TurnOn_Recalculate();
this.Selection_Remove(); this.Selection_Remove();
for (var Index = EndPos - 1; Index >= StartPos; Index--) for (var Index = EndPos - 1; Index >= StartPos; Index--)
......
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