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

правка бага 21903 - [Copy&Paste] При редактировании вставленной таблицы происходит падение canvas

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51420 954022d7-b5bf-4e40-9824-e11837661b57
parent 4e7f2264
...@@ -114,6 +114,9 @@ function Paragraph(DrawingDocument, Parent, PageNum, X, Y, XLimit, YLimit) ...@@ -114,6 +114,9 @@ function Paragraph(DrawingDocument, Parent, PageNum, X, Y, XLimit, YLimit)
this.SpellChecker = new CParaSpellChecker(); this.SpellChecker = new CParaSpellChecker();
//this.folHlinkColor = {};
//this.folHlinkColor.unifill = unifill;
//this.folHlinkColor.Color = {r:128, g:0, b:151};
// Добавляем данный класс в таблицу Id (обязательно в конце конструктора) // Добавляем данный класс в таблицу Id (обязательно в конце конструктора)
g_oTableId.Add( this, this.Id ); g_oTableId.Add( this, this.Id );
} }
......
...@@ -15864,6 +15864,8 @@ CTable.prototype = ...@@ -15864,6 +15864,8 @@ CTable.prototype =
// Для прилегания к верху или для второй страницы ничего не делаем (так изначально рассчитывалось) // Для прилегания к верху или для второй страницы ничего не делаем (так изначально рассчитывалось)
if ( vertalignjc_Top === VAlign || CellPageIndex > 1 || (1 === CellPageIndex && true === this.RowsInfo[CurRow].FirstPage ) ) if ( vertalignjc_Top === VAlign || CellPageIndex > 1 || (1 === CellPageIndex && true === this.RowsInfo[CurRow].FirstPage ) )
{ {
if(!Cell.Temp.Y_VAlign_offset)
Cell.Temp.Y_VAlign_offset = [];
Cell.Temp.Y_VAlign_offset[CellPageIndex] = 0; Cell.Temp.Y_VAlign_offset[CellPageIndex] = 0;
continue; continue;
} }
...@@ -16015,7 +16017,7 @@ CTable.prototype = ...@@ -16015,7 +16017,7 @@ CTable.prototype =
// это приведет к изменению высоты строки, то пересчитываем все строки дальше. // это приведет к изменению высоты строки, то пересчитываем все строки дальше.
Internal_RecalculateFrom : function(RowIndex, CellIndex, bChange, bForceRecalc) Internal_RecalculateFrom : function(RowIndex, CellIndex, bChange, bForceRecalc)
{ {
return editor.WordControl.m_oLogicDocument.Recalculate(); // return editor.WordControl.m_oLogicDocument.Recalculate();
if ( true === this.TurnOffRecalc ) if ( true === this.TurnOffRecalc )
return; return;
......
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