This commit is contained in:
Daria
2025-09-29 16:31:54 +03:00
parent c53e7416cc
commit 14e9a198c4
2 changed files with 7 additions and 3 deletions

View File

@ -79,8 +79,8 @@ void RtfDocumentProperty::SetDefault()
m_nThemelangfe = PROP_DEF;
m_nThemelangcs = PROP_DEF;
m_nPaperWidth = 12240;
m_nPaperHeight = 15840;
m_nPaperWidth = 11900;
m_nPaperHeight = 16840;
m_nMarginLeft = 1701;
m_nMarginRight = 850;
m_nMarginTop = 1134;

View File

@ -268,7 +268,11 @@ bool OOXDocumentWriter::SaveBySection()
_section section;
if (m_oDocument.GetItem(section, 0))
{
sXmlSectProp = section.props->RenderToOOX(oNewParam);
if (m_oDocument.GetCount() == 2)
{
section.props->m_bFinalize = false;
}
sXmlSectProp = section.props->RenderToOOX(oNewParam);
}
}
RtfParagraph *para = dynamic_cast<RtfParagraph *>(m_oDocument[0].props->operator[](i).get());