sw/source/core/docnode/ndsect.cxx | 1 + 1 file changed, 1 insertion(+)
New commits: commit 031fb8b0cf1d0fa0e5290afb32ea8d603c6b2550 Author: Vasily Melenchuk <[email protected]> AuthorDate: Thu Aug 20 12:09:49 2020 +0300 Commit: Michael Stahl <[email protected]> CommitDate: Thu Aug 27 12:59:17 2020 +0200 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 <[email protected]> (cherry picked from commit 5f23f241704f798164df498e24dbf6b0daf27c44) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101369 Reviewed-by: Michael Stahl <[email protected]> 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 ); _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
