mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-20 03:08:28 +08:00
for bug #66401
This commit is contained in:
@ -485,6 +485,36 @@ namespace DocFileFormat
|
||||
}
|
||||
}
|
||||
}
|
||||
if (_doc->nWordVersion > 0)
|
||||
{
|
||||
if (false == m_sAsciiFont.empty())
|
||||
{
|
||||
if (m_sEastAsiaFont.empty())
|
||||
{
|
||||
m_sEastAsiaFont = m_sAsciiFont;
|
||||
XMLTools::XMLAttribute* eastAsia = new XMLTools::XMLAttribute(L"w:eastAsia");
|
||||
eastAsia->SetValue(FormatUtils::XmlEncode(m_sEastAsiaFont));
|
||||
rFonts->AppendAttribute(*eastAsia);
|
||||
RELEASEOBJECT(eastAsia);
|
||||
}
|
||||
if (m_shAnsiFont.empty())
|
||||
{
|
||||
m_shAnsiFont = m_sAsciiFont;
|
||||
XMLTools::XMLAttribute* ansi = new XMLTools::XMLAttribute(L"w:hAnsi");
|
||||
ansi->SetValue(FormatUtils::XmlEncode(m_shAnsiFont));
|
||||
rFonts->AppendAttribute(*ansi);
|
||||
RELEASEOBJECT(ansi);
|
||||
}
|
||||
if (m_sCsFont.empty())
|
||||
{
|
||||
m_sCsFont = m_sAsciiFont;
|
||||
XMLTools::XMLAttribute* cs = new XMLTools::XMLAttribute(L"w:cs");
|
||||
cs->SetValue(FormatUtils::XmlEncode(m_sCsFont, true));
|
||||
rFonts->AppendAttribute(*cs);
|
||||
RELEASEOBJECT(cs);
|
||||
}
|
||||
}
|
||||
}
|
||||
if ( lang->GetAttributeCount() > 0 )
|
||||
{
|
||||
parent->AppendChild( *lang );
|
||||
|
||||
Reference in New Issue
Block a user