Kaydet (Commit) 60fa5057 authored tarafından Luke Deller's avatar Luke Deller Kaydeden (comit) Caolán McNamara

fdo#56513 second header/footer lost saving as .doc

This reverts changeset 723f772d for i#106749, then applies an
alternative fix for that issue.

Change-Id: Ib5a1788b67517c8d3cf80fd76801e30587535366
Reviewed-on: https://gerrit.libreoffice.org/1170Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst a33727bf
...@@ -2372,7 +2372,9 @@ void MSWordExportBase::WriteText() ...@@ -2372,7 +2372,9 @@ void MSWordExportBase::WriteText()
} }
else if ( pNd->IsTableNode() ) else if ( pNd->IsTableNode() )
{ {
mpTableInfo->processSwTable( &pNd->GetTableNode()->GetTable() ); SwTable * pTable = &pNd->GetTableNode()->GetTable();
OutputSectionBreaks( &pTable->GetTableFmt()->GetAttrSet(), *pNd );
mpTableInfo->processSwTable( pTable );
} }
else if ( pNd->IsSectionNode() && TXT_MAINTEXT == nTxtTyp ) else if ( pNd->IsSectionNode() && TXT_MAINTEXT == nTxtTyp )
OutputSectionNode( *pNd->GetSectionNode() ); OutputSectionNode( *pNd->GetSectionNode() );
......
...@@ -437,15 +437,6 @@ void MSWordExportBase::OutputSectionBreaks( const SfxItemSet *pSet, const SwNode ...@@ -437,15 +437,6 @@ void MSWordExportBase::OutputSectionBreaks( const SfxItemSet *pSet, const SwNode
//section. //section.
bool bBreakSet = false; bool bBreakSet = false;
const SwPageDesc * pPageDesc = rNd.FindPageDesc(sal_False);
if (pAktPageDesc != pPageDesc)
{
bBreakSet = true;
bNewPageDesc = true;
pAktPageDesc = pPageDesc;
}
if ( pSet && pSet->Count() ) if ( pSet && pSet->Count() )
{ {
if ( SFX_ITEM_SET == pSet->GetItemState( RES_PAGEDESC, false, &pItem ) && if ( SFX_ITEM_SET == pSet->GetItemState( RES_PAGEDESC, false, &pItem ) &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment