Commit 6e409d2f authored by Oleg Korshul's avatar Oleg Korshul

images bug

parent 3e698b85
...@@ -342,7 +342,7 @@ public: ...@@ -342,7 +342,7 @@ public:
_formatDst = NSDoctRenderer::DoctRendererFormat::PPTT; _formatDst = NSDoctRenderer::DoctRendererFormat::PPTT;
else if (type & AVS_OFFICESTUDIO_FILE_SPREADSHEET) else if (type & AVS_OFFICESTUDIO_FILE_SPREADSHEET)
_formatDst = NSDoctRenderer::DoctRendererFormat::XLST; _formatDst = NSDoctRenderer::DoctRendererFormat::XLST;
else if (type & AVS_OFFICESTUDIO_FILE_CROSSPLATFORM) else if ((type & AVS_OFFICESTUDIO_FILE_CROSSPLATFORM) || (type & AVS_OFFICESTUDIO_FILE_IMAGE))
_formatDst = NSDoctRenderer::DoctRendererFormat::PDF; _formatDst = NSDoctRenderer::DoctRendererFormat::PDF;
v8::Context::Scope context_scope(m_context); v8::Context::Scope context_scope(m_context);
...@@ -1408,10 +1408,12 @@ namespace NSDoctRenderer ...@@ -1408,10 +1408,12 @@ namespace NSDoctRenderer
nFormat = AVS_OFFICESTUDIO_FILE_SPREADSHEET_CSV; nFormat = AVS_OFFICESTUDIO_FILE_SPREADSHEET_CSV;
else if (L"pdf" == _builder_params[0]) else if (L"pdf" == _builder_params[0])
nFormat = AVS_OFFICESTUDIO_FILE_CROSSPLATFORM_PDF; nFormat = AVS_OFFICESTUDIO_FILE_CROSSPLATFORM_PDF;
else if (L"image" == _builder_params[0])
nFormat = AVS_OFFICESTUDIO_FILE_IMAGE;
else if (L"jpg" == _builder_params[0]) else if (L"jpg" == _builder_params[0])
nFormat = AVS_OFFICESTUDIO_FILE_IMAGE_JPG; nFormat = AVS_OFFICESTUDIO_FILE_IMAGE;
else if (L"png" == _builder_params[0]) else if (L"png" == _builder_params[0])
nFormat = AVS_OFFICESTUDIO_FILE_IMAGE_PNG; nFormat = AVS_OFFICESTUDIO_FILE_IMAGE;
if (m_pInternal->m_oParams.m_bSaveWithDoctrendererMode) if (m_pInternal->m_oParams.m_bSaveWithDoctrendererMode)
{ {
......
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