Commit 751cd9a9 authored by Ilya.Kirillov's avatar Ilya.Kirillov

Исправлены баги с drag-n-drop в формулах (баги 27076, 27077).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58995 954022d7-b5bf-4e40-9824-e11837661b57
parent 89fa292a
...@@ -8742,9 +8742,11 @@ CDocument.prototype = ...@@ -8742,9 +8742,11 @@ CDocument.prototype =
// Если надо удаляем выделенную часть (пересчет отключаем на время удаления) // Если надо удаляем выделенную часть (пересчет отключаем на время удаления)
if ( true !== bCopy ) if ( true !== bCopy )
{ {
this.TurnOffRecalc = true; this.TurnOff_Recalculate();
this.TurnOff_InterfaceEvents();
this.Remove(1, false, false, false); this.Remove(1, false, false, false);
this.TurnOffRecalc = false; this.TurnOn_Recalculate(false);
this.TurnOn_InterfaceEvents(false);
} }
this.Selection_Remove(); this.Selection_Remove();
...@@ -8778,9 +8780,11 @@ CDocument.prototype = ...@@ -8778,9 +8780,11 @@ CDocument.prototype =
// Если надо удаляем выделенную часть (пересчет отключаем на время удаления) // Если надо удаляем выделенную часть (пересчет отключаем на время удаления)
if ( true !== bCopy ) if ( true !== bCopy )
{ {
this.TurnOffRecalc = true; this.TurnOff_Recalculate();
this.TurnOff_InterfaceEvents();
this.Remove(1, false, false, false); this.Remove(1, false, false, false);
this.TurnOffRecalc = false; this.TurnOn_Recalculate(false);
this.TurnOn_InterfaceEvents(false);
} }
this.Selection_Remove(); this.Selection_Remove();
......
...@@ -1984,7 +1984,7 @@ CMathContent.prototype = ...@@ -1984,7 +1984,7 @@ CMathContent.prototype =
if (null !== this.ParaMath) if (null !== this.ParaMath)
this.ParaMath.SetNeedResize(); this.ParaMath.SetNeedResize();
this.CurPos = Pos + 1 + nCount; this.CurPos = Pos + nCount;
if (true === bSelect) if (true === bSelect)
{ {
...@@ -2001,6 +2001,7 @@ CMathContent.prototype = ...@@ -2001,6 +2001,7 @@ CMathContent.prototype =
} }
this.Correct_Content(true); this.Correct_Content(true);
this.Correct_ContentPos(-1);
}, },
Load_FromMenu: function(Type, Paragraph) Load_FromMenu: function(Type, Paragraph)
......
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