mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
.
This commit is contained in:
@ -136,7 +136,7 @@ void PPT_FORMAT::CPPTXWriter::CreateFile(CPPTUserInfo* pUserInfo)
|
||||
|
||||
// core
|
||||
oFile.CreateFileW(m_strTempDirectory + FILE_SEPARATOR_STR + _T("docProps") + FILE_SEPARATOR_STR + _T("core.xml"));
|
||||
// if (m_xmlCore.empty()) bug 58841. todo correct <dc:title> contain
|
||||
if (m_xmlCore.empty())
|
||||
m_xmlCore = NSPPTXWriterConst::g_string_core;
|
||||
oFile.WriteStringUTF8(m_xmlCore);
|
||||
oFile.CloseFile();
|
||||
|
||||
@ -2054,7 +2054,7 @@ std::wstring PPT_FORMAT::CShapeWriter::ConvertImage()
|
||||
if (pImageElement->m_lpictureBrightness != 0)
|
||||
{
|
||||
int bright = std::round(3.051705 * pImageElement->m_lpictureBrightness); // -100000 - min, backgrpund. 50000 - usually. 100000 - max,white
|
||||
if (bright < 100000 || bright > 100000)
|
||||
if (bright < -100000 || bright > 100000)
|
||||
bright = 50000;
|
||||
|
||||
m_oWriter.WriteString(L" bright=\"" + std::to_wstring(bright) + L"\"");
|
||||
|
||||
Reference in New Issue
Block a user