Commit 49ba4ec8 authored by Ilya.Kirillov's avatar Ilya.Kirillov

Исправлен баг с удалением выделенного текста с комменатрием в параграфе....

Исправлен баг с удалением выделенного текста с комменатрием в параграфе. Исправлен баг с движением автофигур с зажатой кнопкой Shift. Исправлен баг с неудалением комментария в таблице, когда удалялась таблица (баг 22498)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56130 954022d7-b5bf-4e40-9824-e11837661b57
parent 1b1e9173
...@@ -9765,7 +9765,7 @@ CDocument.prototype = ...@@ -9765,7 +9765,7 @@ CDocument.prototype =
} }
else else
{ {
if ( true === e.ShiftKey ) if ( true === e.ShiftKey && ( docpostype_DrawingObjects !== this.CurPos.Type || true === this.DrawingObjects.isSelectedText() ) )
{ {
if ( true === this.Is_SelectionUse() ) if ( true === this.Is_SelectionUse() )
{ {
......
This diff is collapsed.
...@@ -4984,6 +4984,13 @@ CTable.prototype = ...@@ -4984,6 +4984,13 @@ CTable.prototype =
PreDelete : function() PreDelete : function()
{ {
this.DrawingDocument.EndTrackTable( this, false ); this.DrawingDocument.EndTrackTable( this, false );
var RowsCount = this.Content.length;
for ( var CurRow = 0; CurRow < RowsCount; CurRow++ )
{
var Row = this.Content[CurRow];
Row.PreDelete();
}
}, },
Remove_InnerTable : function() Remove_InnerTable : function()
...@@ -17711,6 +17718,8 @@ CTable.prototype = ...@@ -17711,6 +17718,8 @@ CTable.prototype =
if ( Index >= this.Content.length || Index < 0 ) if ( Index >= this.Content.length || Index < 0 )
return; return;
this.Content[Index].PreDelete();
History.Add( this, { Type : historyitem_Table_RemoveRow, Pos : Index, Item : { Row : this.Content[Index], TableRowsBottom : this.TableRowsBottom[Index], RowsInfo : this.RowsInfo[Index] } } ); History.Add( this, { Type : historyitem_Table_RemoveRow, Pos : Index, Item : { Row : this.Content[Index], TableRowsBottom : this.TableRowsBottom[Index], RowsInfo : this.RowsInfo[Index] } } );
this.Rows--; this.Rows--;
...@@ -18902,6 +18911,22 @@ CTableRow.prototype = ...@@ -18902,6 +18911,22 @@ CTableRow.prototype =
this.Content[Index].Prepare_RecalculateObject(); this.Content[Index].Prepare_RecalculateObject();
} }
}, },
PreDelete : function()
{
var CellsCount = this.Get_CellsCount();
for ( var CurCell = 0; CurCell < CellsCount; CurCell++ )
{
var Cell = this.Get_Cell( CurCell );
var CellContent = Cell.Content.Content;
var ContentCount = CellContent.length;
for ( var Pos = 0; Pos < ContentCount; Pos++ )
{
CellContent[Pos].PreDelete();
}
}
},
//----------------------------------------------------------------------------------- //-----------------------------------------------------------------------------------
// Работаем с стилем строки // Работаем с стилем строки
//----------------------------------------------------------------------------------- //-----------------------------------------------------------------------------------
......
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