mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
builder error (save to pdf & open file by url)
This commit is contained in:
@ -939,7 +939,7 @@ namespace NSDoctRenderer
|
||||
MoveFileOpen(path, sFileCopy);
|
||||
|
||||
COfficeFileFormatChecker oChecker;
|
||||
if (!oChecker.isOfficeFile(path))
|
||||
if (!oChecker.isOfficeFile(sFileCopy))
|
||||
return false;
|
||||
|
||||
if (oChecker.nFileType & AVS_OFFICESTUDIO_FILE_DOCUMENT)
|
||||
|
||||
@ -1194,5 +1194,5 @@ bool Doct_renderer_SaveFile_ForBuilder(int nFormat, const std::wstring& strDstFi
|
||||
oParams.m_strDstFilePath = strDstFile;
|
||||
|
||||
return NSDoctRenderer::CDoctRenderer_Private::Doct_renderer_SaveFile(&oParams,
|
||||
pNative, isolate, global_js, args, try_catch, strError, true);
|
||||
pNative, isolate, global_js, args, try_catch, strError, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user