summaryrefslogtreecommitdiff
path: root/sw/source/core/doc
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/doc')
-rw-r--r--sw/source/core/doc/docglos.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/source/core/doc/docglos.cxx b/sw/source/core/doc/docglos.cxx
index 306564c2a1f5..2993a774ad25 100644
--- a/sw/source/core/doc/docglos.cxx
+++ b/sw/source/core/doc/docglos.cxx
@@ -142,6 +142,13 @@ bool SwDoc::InsertGlossary( SwTextBlocks& rBlock, const OUString& rEntry,
{
SwDoc* pGDoc = rBlock.GetDoc();
+ // tdf#53023 - remove the last empty paragraph (check SwXMLTextBlockParContext dtor)
+ if (mbInsOnlyTextGlssry)
+ {
+ SwPaM aPaM(*pGDoc->GetNodes()[pGDoc->GetNodes().GetEndOfContent().GetIndex() - 1]);
+ pGDoc->getIDocumentContentOperations().DelFullPara(aPaM);
+ }
+
// Update all fixed fields, with the right DocInfo.
// FIXME: UGLY: Because we cannot limit the range in which to do
// field updates, we must update the fixed fields at the glossary