[Libreoffice-commits] core.git: sw/source
Miklos Vajna (via logerrit)
logerrit at kemper.freedesktop.org
Thu Aug 5 06:53:33 UTC 2021
sw/source/core/docnode/node.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 13377fd2e1d6e00597bb23a480ed9ad0aa9a563c
Author: Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Wed Aug 4 20:26:13 2021 +0200
Commit: Miklos Vajna <vmiklos at collabora.com>
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 <vmiklos at collabora.com>
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;
More information about the Libreoffice-commits
mailing list