Commit a06c982f authored by Sergey.Konovalov's avatar Sergey.Konovalov

revert Revision: 56469

try,catch для открытия больших файлов на мобильных устройствах.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59989 954022d7-b5bf-4e40-9824-e11837661b57
parent a38e7c70
......@@ -4677,19 +4677,19 @@ function BinaryFileReader(doc, openParams)
};
this.Read = function(data)
{
//try{
try{
this.stream = this.getbase64DecodedData(data);
this.PreLoadPrepare();
this.ReadMainTable();
this.PostLoadPrepare();
//}
//catch(e)
//{
// if(e.message == g_sErrorCharCountMessage)
// return false;
// else
// throw e;
//}
}
catch(e)
{
if(e.message == g_sErrorCharCountMessage)
return false;
else
throw e;
}
return true;
};
this.ReadData = function(data)
......@@ -7302,7 +7302,7 @@ function Binary_DocumentTableReader(doc, oReadResult, openParams, stream, bAllow
var oThis = this;
if ( c_oSerParType.Par === type )
{
if(null != this.openParams && true == this.openParams.checkFileSize)
if(null != this.openParams)
{
this.openParams.parCount += 1;
if(this.openParams.parCount >= g_nErrorParagraphCount)
......
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