Commit 4c3db94e authored by Ilya Kirillov's avatar Ilya Kirillov

Fixed bug #34395

parent 8f858dbf
...@@ -2593,6 +2593,7 @@ CTable.prototype = ...@@ -2593,6 +2593,7 @@ CTable.prototype =
this.Document_SetThisElementCurrent(false); this.Document_SetThisElementCurrent(false);
this.Cursor_MoveToStartPos(); this.Cursor_MoveToStartPos();
var oTargetTable = this;
if ( true != this.Is_Inline() ) if ( true != this.Is_Inline() )
{ {
if ( false === oLogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_Table_Properties, null, true) ) if ( false === oLogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_Table_Properties, null, true) )
...@@ -2667,7 +2668,7 @@ CTable.prototype = ...@@ -2667,7 +2668,7 @@ CTable.prototype =
} }
var oTargetTable = AscCommon.CollaborativeEditing.Is_SingleUser() ? this : this.Copy(NewDocContent); oTargetTable = AscCommon.CollaborativeEditing.Is_SingleUser() ? this : this.Copy(NewDocContent);
if (NewDocContent != OldDocContent) if (NewDocContent != OldDocContent)
{ {
// Сначала добавляем таблицу в новый класс // Сначала добавляем таблицу в новый класс
...@@ -2694,8 +2695,7 @@ CTable.prototype = ...@@ -2694,8 +2695,7 @@ CTable.prototype =
} }
editor.WordControl.m_oLogicDocument.Recalculate(); editor.WordControl.m_oLogicDocument.Recalculate();
oTargetTable.Start_TrackTable();
this.Start_TrackTable();
} }
} }
else else
...@@ -2762,13 +2762,12 @@ CTable.prototype = ...@@ -2762,13 +2762,12 @@ CTable.prototype =
editor.WordControl.m_oLogicDocument.Recalculate(); editor.WordControl.m_oLogicDocument.Recalculate();
} }
oTargetTable.Start_TrackTable();
this.Start_TrackTable();
} }
} }
editor.WordControl.m_oLogicDocument.Selection_Remove(); editor.WordControl.m_oLogicDocument.Selection_Remove();
this.Document_SetThisElementCurrent(true); oTargetTable.Document_SetThisElementCurrent(true);
this.Cursor_MoveToStartPos(); oTargetTable.Cursor_MoveToStartPos();
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