summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@libreoffice.org>2021-10-31 21:01:39 +0100
committerMichael Stahl <michael.stahl@allotropia.de>2021-11-05 10:48:52 +0100
commit4a7022c199addb1fbc7445708c0f4801fbf1e47f (patch)
treea7dcb6a961b332dd80bf451622cb4187716f3f2f /sw
parent9ffbbd9dba5f12be2914ebbf01ebdd303b695e46 (diff)
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.stahl@allotropia.de>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/docnode/node.cxx2
1 files changed, 2 insertions, 0 deletions
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) );