Fix for Footer is missing if fisrt page different header/footer is set
Reviewed on: https://gerrit.libreoffice.org/7589 Change-Id: I2a2f2abc0dcf5542b7b950f9a232d7155a055fdd
This commit is contained in:
committed by
Miklos Vajna
parent
d2d5864462
commit
dcea8ba3b4
BIN
sw/qa/extras/ooxmlexport/data/testTitlePage.docx
Normal file
BIN
sw/qa/extras/ooxmlexport/data/testTitlePage.docx
Normal file
Binary file not shown.
@@ -2637,6 +2637,13 @@ DECLARE_OOXMLEXPORT_TEST(testTOCFlag_u,"testTOCFlag_u.docx")
|
||||
OUString contents = OUString::createFromAscii((const char*)((pXmlNode->children[0]).content));
|
||||
CPPUNIT_ASSERT(contents.match(" TOC \\z \\o \"1-9\" \\u \\h"));
|
||||
}
|
||||
DECLARE_OOXMLEXPORT_TEST(testTestTitlePage, "testTitlePage.docx")
|
||||
{
|
||||
xmlDocPtr pXmlDoc = parseExport("word/document.xml");
|
||||
if (!pXmlDoc)
|
||||
return;
|
||||
assertXPathChildren(pXmlDoc, "/w:document/w:body/w:sectPr/w:titlePg", 0);
|
||||
}
|
||||
|
||||
DECLARE_OOXMLEXPORT_TEST(testTableRowDataDisplayedTwice,"table-row-data-displayed-twice.docx")
|
||||
{
|
||||
|
@@ -1747,7 +1747,7 @@ void MSWordExportBase::SectionProperties( const WW8_SepInfo& rSepInfo, WW8_PdAtt
|
||||
{
|
||||
const SwPageDesc *pFollow = pPd->GetFollow();
|
||||
const SwFrmFmt& rFollowFmt = pFollow->GetMaster();
|
||||
if ( sw::util::IsPlausableSingleWordSection( *pPdFirstPgFmt, rFollowFmt ) )
|
||||
if ( sw::util::IsPlausableSingleWordSection( *pPdFirstPgFmt, rFollowFmt ) || titlePage )
|
||||
{
|
||||
if (rSepInfo.pPDNd)
|
||||
pPdFirstPgFmt = pPd->GetPageFmtOfNode( *rSepInfo.pPDNd );
|
||||
|
Reference in New Issue
Block a user