[Libreoffice-commits] .: Branch 'libreoffice-3-6' - sw/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Dec 6 00:51:51 PST 2012
sw/source/filter/ww8/wrtww8.cxx | 4 +++-
sw/source/filter/ww8/ww8atr.cxx | 9 ---------
2 files changed, 3 insertions(+), 10 deletions(-)
New commits:
commit 44dafcf9e29b2286016b9be2ac47c2609c817abc
Author: Luke Deller <luke at deller.id.au>
Date: Mon Nov 26 20:08:22 2012 +1100
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/1170
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx
index e0bacc4..453ee0c 100644
--- a/sw/source/filter/ww8/wrtww8.cxx
+++ b/sw/source/filter/ww8/wrtww8.cxx
@@ -2386,7 +2386,9 @@ void MSWordExportBase::WriteText()
}
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 )
OutputSectionNode( *pNd->GetSectionNode() );
diff --git a/sw/source/filter/ww8/ww8atr.cxx b/sw/source/filter/ww8/ww8atr.cxx
index 26db61b..4354d68 100644
--- a/sw/source/filter/ww8/ww8atr.cxx
+++ b/sw/source/filter/ww8/ww8atr.cxx
@@ -436,15 +436,6 @@ void MSWordExportBase::OutputSectionBreaks( const SfxItemSet *pSet, const SwNode
//section.
bool bBreakSet = false;
- const SwPageDesc * pPageDesc = rNd.FindPageDesc(sal_False);
-
- if (pAktPageDesc != pPageDesc)
- {
- bBreakSet = true;
- bNewPageDesc = true;
- pAktPageDesc = pPageDesc;
- }
-
if ( pSet && pSet->Count() )
{
if ( SFX_ITEM_SET == pSet->GetItemState( RES_PAGEDESC, false, &pItem ) &&
More information about the Libreoffice-commits
mailing list