Commit ce568283 authored by konovalovsergey's avatar konovalovsergey Committed by Alexander.Trofimov

не открываем таблицу без содержимого.

parent e8612449
......@@ -7958,6 +7958,7 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, bAllow
res = this.bcr.Read1(length, function(t, l){
return oThis.ReadDocTable(t, l, oNewTable);
});
if (oNewTable.Content.length > 0) {
oNewTable.ReIndexing(0);
oNewTable.Correct_BadTable();
if(2 == g_nCurFileVersion && false == oNewTable.Inline)
......@@ -7977,6 +7978,7 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, bAllow
this.lastPar = oNewTable;
Content.push(oNewTable);
}
}
else if ( c_oSerParType.sectPr === type )
{
var oSectPr = oThis.Document.SectPr;
......@@ -8397,6 +8399,7 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, bAllow
res = this.bcr.Read1(length, function(t, l){
return oThis.ReadDocTable(t, l, oNewTable);
});
if (oNewTable.Content.length > 0) {
oNewTable.ReIndexing(0);
oNewTable.Correct_BadTable();
if(2 == g_nCurFileVersion && false == oNewTable.Inline)
......@@ -8416,6 +8419,7 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, bAllow
this.lastPar = oNewTable;
oParStruct.DocContent.push(oNewTable);
}
}
else if(c_oSerRunType.fldstart === type)
{
oRes.bRes = false;
......
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