Commit 35d97ad8 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Bug 27938 - Ошибка в консоли после увеличения/уменьшения отступа в таблице

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60149 954022d7-b5bf-4e40-9824-e11837661b57
parent 471391ee
...@@ -10160,6 +10160,35 @@ CTable.prototype = ...@@ -10160,6 +10160,35 @@ CTable.prototype =
return this.CurCell.Content.Set_ParagraphPresentationNumbering( NumInfo ); return this.CurCell.Content.Set_ParagraphPresentationNumbering( NumInfo );
}, },
Increase_ParagraphLevel : function(bIncrease)
{
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();
for ( var Index = 0; Index < Cells_array.length; Index++ )
{
var Pos = Cells_array[Index];
var Row = this.Content[Pos.Row];
var Cell = Row.Get_Cell( Pos.Cell );
var Cell_Content = Cell.Content;
Cell_Content.Set_ApplyToAll( true );
Cell.Content.Increase_ParagraphLevel( bIncrease );
Cell_Content.Set_ApplyToAll( false );
}
if ( Cells_array[0].Row - 1 >= 0 )
this.Internal_RecalculateFrom( Cells_array[0].Row - 1, 0, true, true );
else
{
this.Internal_Recalculate_1();
this.Internal_OnContentRecalculate( true, 0, this.Index );
}
}
else
return this.CurCell.Content.Increase_ParagraphLevel( bIncrease );
},
Set_ParagraphShd : function(Shd) Set_ParagraphShd : function(Shd)
{ {
if (true === this.ApplyToAll || (this.LogicDocument && true !== this.LogicDocument.UseTextShd && true === this.Selection.Use && table_Selection_Cell === this.Selection.Type && this.Selection.Data.length > 0)) if (true === this.ApplyToAll || (this.LogicDocument && true !== this.LogicDocument.UseTextShd && true === this.Selection.Use && table_Selection_Cell === this.Selection.Type && this.Selection.Data.length > 0))
......
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