diff options
author | Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org> | 2021-10-31 21:01:39 +0100 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2021-11-05 17:48:39 +0100 |
commit | c255482f1712d539e4be7d581512b21c526af809 (patch) | |
tree | fbb1b75d89fee4ce1d782643bfe244f3a61da11b /sw | |
parent | 6f84c1fda7654c18b1e53de7b1c077e8a31e606f (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>
(cherry picked from commit 4a7022c199addb1fbc7445708c0f4801fbf1e47f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124695
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/docnode/node.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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) ); |