[Libreoffice-commits] core.git: sw/source

Vasily Melenchuk (via logerrit) logerrit at kemper.freedesktop.org
Fri Aug 21 21:43:55 UTC 2020


 sw/source/core/docnode/ndsect.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 5f23f241704f798164df498e24dbf6b0daf27c44
Author:     Vasily Melenchuk <vasily.melenchuk at cib.de>
AuthorDate: Thu Aug 20 12:09:49 2020 +0300
Commit:     Thorsten Behrens <Thorsten.Behrens at CIB.de>
CommitDate: Fri Aug 21 23:43:13 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 <Thorsten.Behrens at CIB.de>

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 );


More information about the Libreoffice-commits mailing list