sw/source/core/docnode/node.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 4a7022c199addb1fbc7445708c0f4801fbf1e47f
Author:     Bjoern Michaelsen <bjoern.michael...@libreoffice.org>
AuthorDate: Sun Oct 31 21:01:39 2021 +0100
Commit:     Michael Stahl <michael.st...@allotropia.de>
CommitDate: Fri Nov 5 10:48:52 2021 +0100

    tdf#134294: fix Chapter heading updates
    
    A quick manual recheck seems to confirm, that this does not regress
    tdf#118735, tdf#118049. I couldnt quite recheck tdf#118833, the "steps
    to reproduce" dont quite work on master -- but I did find any obvious
    regression there.
    
    Change-Id: I407ac8c0a8222e3f8c74449a4ec2b9b27e8a3a20
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124532
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>

diff --git a/sw/source/core/docnode/node.cxx b/sw/source/core/docnode/node.cxx
index 20fa89f3fb70..c9b4a41f42fe 100644
--- a/sw/source/core/docnode/node.cxx
+++ b/sw/source/core/docnode/node.cxx
@@ -1262,6 +1262,8 @@ SwFormatColl *SwContentNode::ChgFormatColl( SwFormatColl 
*pNewColl )
 
         if( !IsModifyLocked() )
         {
+            assert(dynamic_cast<SwTextFormatColl*>(pNewColl));
+            ChkCondColl(static_cast<SwTextFormatColl*>(pNewColl));
             SwFormatChg aTmp1( pOldColl );
             SwFormatChg aTmp2( pNewColl );
             SwClientNotify( *this, sw::LegacyModifyHint(&aTmp1, &aTmp2) );

Reply via email to