Fix opening frame after converting data

This commit is contained in:
Vladimir Privezenov
2025-12-02 00:16:12 +03:00
parent 91c5d99447
commit 4abf304033

View File

@ -288,9 +288,10 @@
CCellFrameManager.prototype.openWorkbookData = function (sStream, oInfo)
{
const oFile = new AscCommon.OpenFileResult();
oFile.bSerFormat = AscCommon.checkStreamSignature(sStream, AscCommon.c_oSerFormat.Signature);
const isStreamSignature = AscCommon.checkStreamSignature(sStream, AscCommon.c_oSerFormat.Signature);
oFile.bSerFormat = isStreamSignature || !AscCommon.checkOOXMLSignature(sStream);
oFile.data = sStream;
oFile.isDecodedData = true;
oFile.isDecodedData = !isStreamSignature;
this.api.asc_CloseFile();
AscCommon.g_oDocumentUrls.documentUrl = oInfo["documentUrl"];
this.initBlob(oInfo["blobUrl2Data"], oInfo["url2BlobUrl"]);