This commit is contained in:
Elena.Subbotina
2022-09-14 10:25:32 +03:00
parent bdbe8e811c
commit 78289248c8
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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"\"");