mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
fix bugs
This commit is contained in:
@ -676,7 +676,7 @@ namespace NSDoctRenderer
|
||||
}
|
||||
else
|
||||
{
|
||||
//bIsNoError = this->m_pInternal->ExecuteCommand(NSFile::CUtf8Converter::GetUnicodeStringFromUTF8((BYTE*)_data, (LONG)_len));
|
||||
bIsNoError = this->m_pInternal->ExecuteCommand(NSFile::CUtf8Converter::GetUnicodeStringFromUTF8((BYTE*)_data, (LONG)_len));
|
||||
sJsCommands += command;
|
||||
sJsCommands += "\n";
|
||||
}
|
||||
|
||||
@ -340,7 +340,8 @@ namespace NSDoctRenderer
|
||||
oWorker.m_bIsNeedThumbnails = false;
|
||||
oWorker.m_sDirectory = sDirectory;
|
||||
NSFonts::IApplicationFonts* pFonts = oWorker.Check();
|
||||
pFonts->Release();
|
||||
if(pFonts)
|
||||
pFonts->Release();
|
||||
}
|
||||
|
||||
void CheckFileDir()
|
||||
|
||||
@ -215,5 +215,6 @@ void builder_CreateNativeTmpDoc(const std::string& name, JSSmart<CJSContext> con
|
||||
void builder_CreateNative (const std::string& name, JSSmart<CJSContext> context, NSDoctRenderer::CDocBuilder* builder)
|
||||
{
|
||||
v8::Isolate* current = CV8Worker::GetCurrent();
|
||||
context->m_internal->m_global->Set(current, name.c_str(), _builder_CreateNative(current, builder));
|
||||
context->m_internal->m_context->Global()->Set(context->m_internal->m_context, v8::String::NewFromUtf8(current, name.c_str()), _builder_CreateNative(current, builder));
|
||||
// context->m_internal->m_global->Set(current, name.c_str(), _builder_CreateNative(current, builder));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user