summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-10-26 14:32:37 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-10-26 15:17:31 +0100
commitcc926007e2471b9d7396a9724cae026e27e52ed2 (patch)
tree2e8cb4fe1eef0992783262623b01bd51c063dbb8 /sw
parent956c3ff3d43e1b181f7c91518edee1c7c4dc2a0a (diff)
Let's have both switchHeaderFooter() calls in DocxExport::WriteHeaderFooter()
Change-Id: I051a2a74e0da44b8f13a21e052c35581159402f1
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/docxexport.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/docxexport.cxx b/sw/source/filter/ww8/docxexport.cxx
index d15e4d274a7c..67540eb4028c 100644
--- a/sw/source/filter/ww8/docxexport.cxx
+++ b/sw/source/filter/ww8/docxexport.cxx
@@ -266,7 +266,6 @@ void DocxExport::WriteHeadersFooters( sal_uInt8 nHeadFootFlags,
// Turn OFF flag for 'Writing Headers \ Footers'
m_pAttrOutput->SetWritingHeaderFooter( false );
- m_pAttrOutput->switchHeaderFooter(false, -1);
#if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "DocxExport::WriteHeadersFooters() - nBreakCode introduced, but ignored\n" );
#endif
@@ -720,6 +719,7 @@ void DocxExport::WriteHeaderFooter( const SwFmt& rFmt, bool bHeader, const char*
m_pAttrOutput->switchHeaderFooter(true, m_nHeadersFootersInSection++);
// do the work
WriteHeaderFooterText( rFmt, bHeader );
+ m_pAttrOutput->switchHeaderFooter(false, -1);
m_pAttrOutput->EndParaSdtBlock();
//When the stream changes the cache which is maintained for the graphics in case of alternate content is not cleared.