Fix bug 78774

This commit is contained in:
Daria Ermakova
2026-02-06 18:48:55 +03:00
parent 655bc0698f
commit f6bf73dfab
3 changed files with 28 additions and 18 deletions

View File

@ -257,6 +257,16 @@ namespace DocFileFormat
appendValueAttribute( &footnotePr, L"w:pos", FormatUtils::MapValueToWideString( dop->Fpc, &FootnotePositionMap[0][0], 4, 12 ) );
}
XMLTools::XMLElement footnoteMinusOne( L"w:footnote" );
XMLTools::XMLAttribute idAttrMinusOne( L"w:id", L"-1" );
footnoteMinusOne.AppendAttribute( idAttrMinusOne );
footnotePr.AppendChild( footnoteMinusOne );
XMLTools::XMLElement footnoteZero( L"w:footnote" );
XMLTools::XMLAttribute idAttrZero( L"w:id", L"0" );
footnoteZero.AppendAttribute( idAttrZero );
footnotePr.AppendChild( footnoteZero );
if ( footnotePr.GetAttributeCount() > 0 )
{
m_oXmlWriter.WriteString( footnotePr.GetXMLString() );