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

New commits:
commit c255482f1712d539e4be7d581512b21c526af809
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 17:48:39 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>
    (cherry picked from commit 4a7022c199addb1fbc7445708c0f4801fbf1e47f)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124695

diff --git a/sw/source/core/docnode/node.cxx b/sw/source/core/docnode/node.cxx
index b8f946bc2871..d2e845d5d200 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