From 4a7022c199addb1fbc7445708c0f4801fbf1e47f Mon Sep 17 00:00:00 2001 From: Bjoern Michaelsen Date: Sun, 31 Oct 2021 21:01:39 +0100 Subject: 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 --- sw/source/core/docnode/node.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sw') 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(pNewColl)); + ChkCondColl(static_cast(pNewColl)); SwFormatChg aTmp1( pOldColl ); SwFormatChg aTmp2( pNewColl ); SwClientNotify( *this, sw::LegacyModifyHint(&aTmp1, &aTmp2) ); -- cgit