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

Bug #31779 Исправлен баг с долгим пересчетом, во время которого вызывается еще...

Bug #31779 Исправлен баг с долгим пересчетом, во время которого вызывается еще один пустой пересчет (который ничего не делает). Убраны лишние запросы на пересчет при некоторых действиях с таблицей.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68632 954022d7-b5bf-4e40-9824-e11837661b57
parent 2cb605af
...@@ -1595,9 +1595,6 @@ CDocument.prototype = ...@@ -1595,9 +1595,6 @@ CDocument.prototype =
//console.log( "Long Recalc " ); //console.log( "Long Recalc " );
// Очищаем данные пересчета
this.RecalcInfo.Reset();
var ChangeIndex = 0; var ChangeIndex = 0;
var MainChange = false; var MainChange = false;
...@@ -1793,7 +1790,10 @@ CDocument.prototype = ...@@ -1793,7 +1790,10 @@ CDocument.prototype =
StartIndex = this.FullRecalc.StartIndex; StartIndex = this.FullRecalc.StartIndex;
StartPage = this.FullRecalc.PageIndex; StartPage = this.FullRecalc.PageIndex;
} }
} }
// Очищаем данные пересчета
this.RecalcInfo.Reset();
// Определим, является ли данная страница первой в новой секции // Определим, является ли данная страница первой в новой секции
var bNewSection = ( 0 === StartPage ? true : false ); var bNewSection = ( 0 === StartPage ? true : false );
......
...@@ -6262,7 +6262,6 @@ CTable.prototype = ...@@ -6262,7 +6262,6 @@ CTable.prototype =
} }
this.Internal_Recalculate_1(); this.Internal_Recalculate_1();
this.Internal_OnContentRecalculate(true, 0, this.Index);
} }
this.Selection.Type2 = table_Selection_Common; this.Selection.Type2 = table_Selection_Common;
...@@ -6704,7 +6703,6 @@ CTable.prototype = ...@@ -6704,7 +6703,6 @@ CTable.prototype =
else else
{ {
this.Internal_Recalculate_1(); this.Internal_Recalculate_1();
this.Internal_OnContentRecalculate( true, 0, this.Index );
} }
} }
else else
...@@ -6738,7 +6736,6 @@ CTable.prototype = ...@@ -6738,7 +6736,6 @@ CTable.prototype =
else else
{ {
this.Internal_Recalculate_1(); this.Internal_Recalculate_1();
this.Internal_OnContentRecalculate( true, 0, this.Index );
} }
} }
else else
...@@ -6767,7 +6764,6 @@ CTable.prototype = ...@@ -6767,7 +6764,6 @@ CTable.prototype =
else else
{ {
this.Internal_Recalculate_1(); this.Internal_Recalculate_1();
this.Internal_OnContentRecalculate( true, 0, this.Index );
} }
} }
else else
...@@ -6831,7 +6827,6 @@ CTable.prototype = ...@@ -6831,7 +6827,6 @@ CTable.prototype =
else else
{ {
this.Internal_Recalculate_1(); this.Internal_Recalculate_1();
this.Internal_OnContentRecalculate( true, 0, this.Index );
} }
} }
} }
...@@ -8079,7 +8074,6 @@ CTable.prototype = ...@@ -8079,7 +8074,6 @@ CTable.prototype =
else else
{ {
this.Internal_Recalculate_1(); this.Internal_Recalculate_1();
this.Internal_OnContentRecalculate( true, 0, this.Index );
} }
} }
else else
...@@ -8108,7 +8102,6 @@ CTable.prototype = ...@@ -8108,7 +8102,6 @@ CTable.prototype =
else else
{ {
this.Internal_Recalculate_1(); this.Internal_Recalculate_1();
this.Internal_OnContentRecalculate( true, 0, this.Index );
} }
} }
else else
...@@ -8137,7 +8130,6 @@ CTable.prototype = ...@@ -8137,7 +8130,6 @@ CTable.prototype =
else else
{ {
this.Internal_Recalculate_1(); this.Internal_Recalculate_1();
this.Internal_OnContentRecalculate( true, 0, this.Index );
} }
} }
else else
...@@ -8166,7 +8158,6 @@ CTable.prototype = ...@@ -8166,7 +8158,6 @@ CTable.prototype =
else else
{ {
this.Internal_Recalculate_1(); this.Internal_Recalculate_1();
this.Internal_OnContentRecalculate( true, 0, this.Index );
} }
} }
else else
...@@ -8196,7 +8187,6 @@ CTable.prototype = ...@@ -8196,7 +8187,6 @@ CTable.prototype =
else else
{ {
this.Internal_Recalculate_1(); this.Internal_Recalculate_1();
this.Internal_OnContentRecalculate( true, 0, this.Index );
} }
} }
else else
...@@ -8225,7 +8215,6 @@ CTable.prototype = ...@@ -8225,7 +8215,6 @@ CTable.prototype =
else else
{ {
this.Internal_Recalculate_1(); this.Internal_Recalculate_1();
this.Internal_OnContentRecalculate( true, 0, this.Index );
} }
} }
else else
...@@ -8254,7 +8243,6 @@ CTable.prototype = ...@@ -8254,7 +8243,6 @@ CTable.prototype =
else else
{ {
this.Internal_Recalculate_1(); this.Internal_Recalculate_1();
this.Internal_OnContentRecalculate( true, 0, this.Index );
} }
} }
else if (true === this.Selection.Use && table_Selection_Cell === this.Selection.Type && this.Selection.Data.length > 0) else if (true === this.Selection.Use && table_Selection_Cell === this.Selection.Type && this.Selection.Data.length > 0)
...@@ -8306,7 +8294,6 @@ CTable.prototype = ...@@ -8306,7 +8294,6 @@ CTable.prototype =
else else
{ {
this.Internal_Recalculate_1(); this.Internal_Recalculate_1();
this.Internal_OnContentRecalculate( true, 0, this.Index );
} }
} }
else else
...@@ -8335,7 +8322,6 @@ CTable.prototype = ...@@ -8335,7 +8322,6 @@ CTable.prototype =
else else
{ {
this.Internal_Recalculate_1(); this.Internal_Recalculate_1();
this.Internal_OnContentRecalculate( true, 0, this.Index );
} }
} }
else else
...@@ -8364,7 +8350,6 @@ CTable.prototype = ...@@ -8364,7 +8350,6 @@ CTable.prototype =
else else
{ {
this.Internal_Recalculate_1(); this.Internal_Recalculate_1();
this.Internal_OnContentRecalculate( true, 0, this.Index );
} }
} }
else else
...@@ -8393,7 +8378,6 @@ CTable.prototype = ...@@ -8393,7 +8378,6 @@ CTable.prototype =
else else
{ {
this.Internal_Recalculate_1(); this.Internal_Recalculate_1();
this.Internal_OnContentRecalculate( true, 0, this.Index );
} }
} }
else else
...@@ -8422,7 +8406,6 @@ CTable.prototype = ...@@ -8422,7 +8406,6 @@ CTable.prototype =
else else
{ {
this.Internal_Recalculate_1(); this.Internal_Recalculate_1();
this.Internal_OnContentRecalculate( true, 0, this.Index );
} }
} }
else else
...@@ -8451,7 +8434,6 @@ CTable.prototype = ...@@ -8451,7 +8434,6 @@ CTable.prototype =
else else
{ {
this.Internal_Recalculate_1(); this.Internal_Recalculate_1();
this.Internal_OnContentRecalculate( true, 0, this.Index );
} }
} }
else else
...@@ -8480,7 +8462,6 @@ CTable.prototype = ...@@ -8480,7 +8462,6 @@ CTable.prototype =
else else
{ {
this.Internal_Recalculate_1(); this.Internal_Recalculate_1();
this.Internal_OnContentRecalculate( true, 0, this.Index );
} }
} }
else else
...@@ -8509,7 +8490,6 @@ CTable.prototype = ...@@ -8509,7 +8490,6 @@ CTable.prototype =
else else
{ {
this.Internal_Recalculate_1(); this.Internal_Recalculate_1();
this.Internal_OnContentRecalculate( true, 0, this.Index );
} }
} }
else else
...@@ -8538,7 +8518,6 @@ CTable.prototype = ...@@ -8538,7 +8518,6 @@ CTable.prototype =
else else
{ {
this.Internal_Recalculate_1(); this.Internal_Recalculate_1();
this.Internal_OnContentRecalculate( true, 0, this.Index );
} }
} }
else else
...@@ -8567,7 +8546,6 @@ CTable.prototype = ...@@ -8567,7 +8546,6 @@ CTable.prototype =
else else
{ {
this.Internal_Recalculate_1(); this.Internal_Recalculate_1();
this.Internal_OnContentRecalculate( true, 0, this.Index );
} }
} }
else else
...@@ -11066,7 +11044,6 @@ CTable.prototype = ...@@ -11066,7 +11044,6 @@ CTable.prototype =
} }
this.Internal_Recalculate_1(); this.Internal_Recalculate_1();
this.Internal_OnContentRecalculate( true, 0, this.Index );
editor.WordControl.m_oLogicDocument.Document_UpdateSelectionState(); editor.WordControl.m_oLogicDocument.Document_UpdateSelectionState();
}, },
......
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