sw/source/core/docnode/node.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 13377fd2e1d6e00597bb23a480ed9ad0aa9a563c Author: Miklos Vajna <[email protected]> AuthorDate: Wed Aug 4 20:26:13 2021 +0200 Commit: Miklos Vajna <[email protected]> CommitDate: Thu Aug 5 08:52:52 2021 +0200 sw: use more StaticWhichCast() in source/core/docnode/ See commit 0025e80ba6d882f6f885499efaf37ab0e2ed699d (sw: use SfxPoolItem::StaticWhichCast() in SwTextBoxHelper, 2021-07-07) for motivation. Change-Id: Id3ca7f0796a9afdccd7211a2ceec19e476647612 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120010 Tested-by: Jenkins Reviewed-by: Miklos Vajna <[email protected]> diff --git a/sw/source/core/docnode/node.cxx b/sw/source/core/docnode/node.cxx index b5522aad34fc..5cc3a5487004 100644 --- a/sw/source/core/docnode/node.cxx +++ b/sw/source/core/docnode/node.cxx @@ -1155,7 +1155,7 @@ void SwContentNode::SwClientNotify( const SwModify&, const SfxHint& rHint) if (GetNodes().IsDocNodes() && IsTextNode() && pLegacyHint->m_pOld - && SfxItemState::SET == static_cast<const SwAttrSetChg*>(pLegacyHint->m_pOld)->GetChgSet()->GetItemState(RES_CHRATR_HIDDEN, false)) + && SfxItemState::SET == pLegacyHint->m_pOld->StaticWhichCast(RES_ATTRSET_CHG).GetChgSet()->GetItemState(RES_CHRATR_HIDDEN, false)) bCalcHidden = true; break;
