summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasily Melenchuk <vasily.melenchuk@cib.de>2020-08-20 12:09:49 +0300
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2020-08-21 23:43:13 +0200
commit5f23f241704f798164df498e24dbf6b0daf27c44 (patch)
tree20797b235f99b16ec2498d47f5b9b4dfc95c8681
parentea94295b70b5e9703a54645e73aeda2eba7297fa (diff)
sw: set name for section format on creation
Section format is derived from frame format and better to have own unique name for undo/redo work. Change-Id: If41890443c2d71886164e0b94721b92bc2e9573a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101043 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
-rw-r--r--sw/source/core/docnode/ndsect.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/core/docnode/ndsect.cxx b/sw/source/core/docnode/ndsect.cxx
index a8658f99cf7b..7865ae68e33f 100644
--- a/sw/source/core/docnode/ndsect.cxx
+++ b/sw/source/core/docnode/ndsect.cxx
@@ -191,6 +191,7 @@ SwDoc::InsertSwSection(SwPaM const& rRange, SwSectionData & rNewData,
}
SwSectionFormat* const pFormat = MakeSectionFormat();
+ pFormat->SetName(rNewData.GetSectionName());
if ( pAttr )
{
pFormat->SetFormatAttr( *pAttr );