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

Переделана схема удаления выделенных элементов таблицы во время набора текста (баг 18903).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48148 954022d7-b5bf-4e40-9824-e11837661b57
parent 1231f5fc
......@@ -7692,6 +7692,30 @@ CTable.prototype =
Remove : function(Count, bOnlyText, bRemoveOnlySelection, bOnTextAdd)
{
if ( true === this.ApplyToAll || ( true === this.Selection.Use && table_Selection_Cell === this.Selection.Type && this.Selection.Data.length > 0 ) )
{
var Cells_array = this.Internal_Get_SelectionArray();
if ( true === bOnTextAdd && Cells_array.length > 0 )
{
// Снимаем выделением со всемх ячеек, кроме первой, попавшей в выделение
var Pos = Cells_array[0];
var Cell = this.Content[Pos.Row].Get_Cell( Pos.Cell );
Cell.Content.Select_All();
Cell.Content.Remove( Count, bOnlyText, bRemoveOnlySelection, true );
this.CurCell = Cell;
this.Selection.Use = false;
this.Selection.Start = false;
this.Selection.StartPos.Pos = { Row : Cell.Row.Index, Cell : Cell.Index };
this.Selection.EndPos.Pos = { Row : Cell.Row.Index, Cell : Cell.Index };
this.Document_SetThisElementCurrent();
editor.WordControl.m_oLogicDocument.Recalculate();
}
else
{
var Cells_array = this.Internal_Get_SelectionArray();
for ( var Index = 0; Index < Cells_array.length; Index++ )
......@@ -7714,6 +7738,7 @@ CTable.prototype =
this.Internal_OnContentRecalculate( true, 0, this.Index );
}
}
}
else
this.CurCell.Content.Remove(Count, bOnlyText, bRemoveOnlySelection, bOnTextAdd);
},
......
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