Kaydet (Commit) cc926007 authored tarafından Miklos Vajna's avatar Miklos Vajna

Let's have both switchHeaderFooter() calls in DocxExport::WriteHeaderFooter()

Change-Id: I051a2a74e0da44b8f13a21e052c35581159402f1
üst 956c3ff3
...@@ -266,7 +266,6 @@ void DocxExport::WriteHeadersFooters( sal_uInt8 nHeadFootFlags, ...@@ -266,7 +266,6 @@ void DocxExport::WriteHeadersFooters( sal_uInt8 nHeadFootFlags,
// Turn OFF flag for 'Writing Headers \ Footers' // Turn OFF flag for 'Writing Headers \ Footers'
m_pAttrOutput->SetWritingHeaderFooter( false ); m_pAttrOutput->SetWritingHeaderFooter( false );
m_pAttrOutput->switchHeaderFooter(false, -1);
#if OSL_DEBUG_LEVEL > 1 #if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "DocxExport::WriteHeadersFooters() - nBreakCode introduced, but ignored\n" ); fprintf( stderr, "DocxExport::WriteHeadersFooters() - nBreakCode introduced, but ignored\n" );
#endif #endif
...@@ -720,6 +719,7 @@ void DocxExport::WriteHeaderFooter( const SwFmt& rFmt, bool bHeader, const char* ...@@ -720,6 +719,7 @@ void DocxExport::WriteHeaderFooter( const SwFmt& rFmt, bool bHeader, const char*
m_pAttrOutput->switchHeaderFooter(true, m_nHeadersFootersInSection++); m_pAttrOutput->switchHeaderFooter(true, m_nHeadersFootersInSection++);
// do the work // do the work
WriteHeaderFooterText( rFmt, bHeader ); WriteHeaderFooterText( rFmt, bHeader );
m_pAttrOutput->switchHeaderFooter(false, -1);
m_pAttrOutput->EndParaSdtBlock(); m_pAttrOutput->EndParaSdtBlock();
//When the stream changes the cache which is maintained for the graphics in case of alternate content is not cleared. //When the stream changes the cache which is maintained for the graphics in case of alternate content is not cleared.
......
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