summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2017-06-13 13:48:44 +0300
committerJustin Luth <justin_luth@sil.org>2017-07-01 13:08:22 +0200
commit8e974d24f3bbc59c66476db1a56e6a2013a528e0 (patch)
treee0273befec3e12910aa24a84085f67a0aaf8aca4
parent4b5f5f868fa6a7c86535d251e77d8a6d956f2fa4 (diff)
tdf#108448 ww8export: skip sectionbreak for endnotes
MSWord ignores page-breaks in endnotes, and just adds endnotes at the end of the last page. LO automatically page-breaks with pageStyle Endnotes. It must be built into the code that handles endnotes. Don't try to export that page-break - it doesn't work anyway. Change-Id: I2f266b20a6fa97d0522878f71fe0a6822833d89c Reviewed-on: https://gerrit.libreoffice.org/38727 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Justin Luth <justin_luth@sil.org>
-rw-r--r--sw/source/filter/ww8/wrtww8.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/filter/ww8/wrtww8.cxx b/sw/source/filter/ww8/wrtww8.cxx
index b1a49391b848..987a060820cc 100644
--- a/sw/source/filter/ww8/wrtww8.cxx
+++ b/sw/source/filter/ww8/wrtww8.cxx
@@ -2649,7 +2649,8 @@ void MSWordExportBase::WriteText()
{
SwNode& rNd = m_pCurPam->GetNode();
- if ( rNd.IsTextNode() )
+ // no section breaks exported for Endnotes
+ if ( rNd.IsTextNode() && m_nTextTyp != TXT_EDN )
SectionBreaksAndFrames( *rNd.GetTextNode() );
// output the various types of nodes