From 5f23f241704f798164df498e24dbf6b0daf27c44 Mon Sep 17 00:00:00 2001 From: Vasily Melenchuk Date: Thu, 20 Aug 2020 12:09:49 +0300 Subject: 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 --- sw/source/core/docnode/ndsect.cxx | 1 + 1 file changed, 1 insertion(+) 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 ); -- cgit v1.2.3