summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2020-03-31 16:05:28 +0200
committerMichael Stahl <michael.stahl@cib.de>2020-03-31 17:50:20 +0200
commit38be440dbe8a706052182d06bb1ae95abdd06fcc (patch)
treede704bc612227a2ab3cb529f587730e7897a9e3c /sw/source
parent10036bd52e094b5c9b02ff5142829f0825a20571 (diff)
sw: DOCX export: avoid section breaks in text frames harder
Follow-up to 0dd48d1a9a716456ff1ebe67e19881ad2f56939b - in another document, the sectPr is written from DocxAttributeOutput::StartParagraphProperties(), which lacks a check that it's in the body text. Change-Id: Ia3b56f40a7457f072735a0e09205089a0c5f4584 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91429 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/filter/ww8/docxattributeoutput.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index abc70fcc2bbc..1d64beab56d1 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -1031,7 +1031,7 @@ void DocxAttributeOutput::StartParagraphProperties()
m_pSerializer->startElementNS(XML_w, XML_pPr);
// and output the section break now (if it appeared)
- if ( m_pSectionInfo && (!m_setFootnote))
+ if (m_pSectionInfo && !m_setFootnote && m_rExport.m_nTextTyp == TXT_MAINTEXT)
{
m_rExport.SectionProperties( *m_pSectionInfo );
m_pSectionInfo.reset();