Commit 51fce398 authored by konovalovsergey's avatar konovalovsergey

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

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