Commit 02a2fb4e authored by Sergey.Konovalov's avatar Sergey.Konovalov

падение при открытии пустых <tc/>

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55451 954022d7-b5bf-4e40-9824-e11837661b57
parent 0f948394
......@@ -8047,16 +8047,18 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, bAllow
oCellContentReader.oCurComments = this.oCurComments;
oCellContentReader.Read(length, oCellContent);
this.nCurCommentsCount = oCellContentReader.nCurCommentsCount;
for(var i = 0; i < oCellContent.length; ++i)
if(oCellContent.length > 0)
{
if(i == length - 1)
cell.Content.Internal_Content_Add(i + 1, oCellContent[i], true);
else
cell.Content.Internal_Content_Add(i + 1, oCellContent[i], false);
for(var i = 0; i < oCellContent.length; ++i)
{
if(i == length - 1)
cell.Content.Internal_Content_Add(i + 1, oCellContent[i], true);
else
cell.Content.Internal_Content_Add(i + 1, oCellContent[i], false);
}
cell.Content.Internal_Content_Remove(0, 1);
}
cell.Content.Internal_Content_Remove(0, 1);
//если 0 == oCellContent.length в ячейке остается параграф который был там при создании.
}
else
res = c_oSerConstants.ReadUnknown;
......
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