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

Bug 28051 - [AutoSave] Сбрасываются дополнительные настройки таблицы после переоткрытия

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60261 954022d7-b5bf-4e40-9824-e11837661b57
parent f77e914e
......@@ -2936,13 +2936,44 @@ function CBinaryFileWriter()
oThis.WriteUChar(g_nodeAttributeStart);
var _marg = cell.Pr.TableCellMar;
if (_marg !== undefined && null != _marg && null != _marg.Left && null != _marg.Top && null != _marg.Right && null != _marg.Bottom)
var tableMar = cell.Row.Table.Pr.TableCellMar;
if(_marg && _marg.Left && isRealNumber(_marg.Left.W))
{
oThis._WriteInt1(0, (_marg.Left.W * 36000) >> 0);
}
else if(tableMar && tableMar.Left && isRealNumber(tableMar.Left.W))
{
oThis._WriteInt1(0, (tableMar.Left.W * 36000) >> 0);
}
if(_marg && _marg.Top && isRealNumber(_marg.Top.W))
{
oThis._WriteInt1(1, (_marg.Top.W * 36000) >> 0);
}
else if(tableMar && tableMar.Top && isRealNumber(tableMar.Top.W))
{
oThis._WriteInt1(1, (tableMar.Top.W * 36000) >> 0);
}
if(_marg && _marg.Right && isRealNumber(_marg.Right.W))
{
oThis._WriteInt1(2, (_marg.Right.W * 36000) >> 0);
}
else if(tableMar && tableMar.Right && isRealNumber(tableMar.Right.W))
{
oThis._WriteInt1(2, (tableMar.Right.W * 36000) >> 0);
}
if(_marg && _marg.Bottom && isRealNumber(_marg.Bottom.W))
{
oThis._WriteInt1(3, (_marg.Bottom.W * 36000) >> 0);
}
else if(tableMar && tableMar.Bottom && isRealNumber(tableMar.Bottom.W))
{
oThis._WriteInt1(3, (tableMar.Bottom.W * 36000) >> 0);
}
oThis.WriteUChar(g_nodeAttributeEnd);
......
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