This commit is contained in:
Kulikova Svetlana
2020-10-19 13:07:37 +03:00
parent ceeeb7b97f
commit cd0f35999b
3 changed files with 5 additions and 3 deletions

View File

@ -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";
}

View File

@ -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()

View File

@ -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));
}