Improved work with caption tables when html to ooxml conversion

This commit is contained in:
Kirill Polyakov
2024-04-09 16:18:46 +03:00
parent 463ca006ee
commit 471c9a4ebd
2 changed files with 242 additions and 56 deletions

View File

@ -317,7 +317,7 @@ namespace NSCSS
oXmlElement.AddPropertiesInP(PProperties::P_ContextualSpacing, L"true");
}
if (!oStyle.m_oBackground.Empty() && oStyle.HaveThisParent(L"table"))
if (!oStyle.m_oBackground.Empty() && !oStyle.HaveThisParent(L"table"))
oXmlElement.AddPropertiesInP(PProperties::P_Shd, oStyle.m_oBackground.IsNone() ? L"auto" : oStyle.m_oBackground.GetColor().ToWString());
if (!oStyle.m_oBorder.Empty() && !oStyle.HaveThisParent(L"table"))