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

Bug 28364 - Теряется толщина границы таблицы при Copy-Paste

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60867 954022d7-b5bf-4e40-9824-e11837661b57
parent 905dbc57
...@@ -3590,7 +3590,7 @@ PasteProcessor.prototype = ...@@ -3590,7 +3590,7 @@ PasteProcessor.prototype =
{ {
if(sp_tree[s] instanceof CGraphicFrame) if(sp_tree[s] instanceof CGraphicFrame)
{ {
sp_tree[s].graphicObject.Set_TableStyle(table_style_ids[t]); sp_tree[s].graphicObject.Set_TableStyle(table_style_ids[t], true);
++t; ++t;
} }
} }
...@@ -4983,7 +4983,7 @@ PasteProcessor.prototype = ...@@ -4983,7 +4983,7 @@ PasteProcessor.prototype =
if(style_index != null && arr_shapes[i].Drawing.graphicObject && arr_shapes[i].Drawing.graphicObject.Set_TableStyle) if(style_index != null && arr_shapes[i].Drawing.graphicObject && arr_shapes[i].Drawing.graphicObject.Set_TableStyle)
{ {
if(!g_bIsDocumentCopyPaste) if(!g_bIsDocumentCopyPaste)
arr_shapes[i].Drawing.graphicObject.Set_TableStyle(style_index); arr_shapes[i].Drawing.graphicObject.Set_TableStyle(style_index, true);
else if(cStyle) else if(cStyle)
{ {
//пока не применяем стили, посольку они отличаются //пока не применяем стили, посольку они отличаются
......
...@@ -10905,7 +10905,7 @@ CTable.prototype = ...@@ -10905,7 +10905,7 @@ CTable.prototype =
this.Pr = TablePr; this.Pr = TablePr;
}, },
Set_TableStyle : function(StyleId) Set_TableStyle : function(StyleId, bNoClearFormatting)
{ {
// Здесь мы не проверяем изменился ли стиль, потому что при выставлении стиля нужно сбрасывать // Здесь мы не проверяем изменился ли стиль, потому что при выставлении стиля нужно сбрасывать
// прямые настройки, даже если мы выставляем тот же самый стиль. // прямые настройки, даже если мы выставляем тот же самый стиль.
...@@ -10914,8 +10914,10 @@ CTable.prototype = ...@@ -10914,8 +10914,10 @@ CTable.prototype =
this.TableStyle = StyleId; this.TableStyle = StyleId;
// Очищаем все прямое форматирование таблицы // Очищаем все прямое форматирование таблицы
if(!(bNoClearFormatting === true))
{
this.Clear_DirectFormatting(false); this.Clear_DirectFormatting(false);
}
this.Recalc_CompiledPr(); this.Recalc_CompiledPr();
}, },
......
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