diff options
author | Vasily Melenchuk <vasily.melenchuk@cib.de> | 2020-08-20 12:09:49 +0300 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2020-08-31 07:18:30 +0200 |
commit | ecc71d9ec9752ebffc97f02a71bc93188626d7e0 (patch) | |
tree | df6379b5e9d86a5a9bb30df865049f600639b0d6 /sw | |
parent | 0a75c12c04638b7be457717f2c0ccd5d29fb6728 (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>
(cherry picked from commit 5f23f241704f798164df498e24dbf6b0daf27c44)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101369
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/docnode/ndsect.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/core/docnode/ndsect.cxx b/sw/source/core/docnode/ndsect.cxx index ef388242fa67..11c6237f5f15 100644 --- a/sw/source/core/docnode/ndsect.cxx +++ b/sw/source/core/docnode/ndsect.cxx @@ -188,6 +188,7 @@ SwDoc::InsertSwSection(SwPaM const& rRange, SwSectionData & rNewData, } SwSectionFormat* const pFormat = MakeSectionFormat(); + pFormat->SetName(rNewData.GetSectionName()); if ( pAttr ) { pFormat->SetFormatAttr( *pAttr ); |