diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-07-18 09:11:40 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-07-18 11:47:40 +0200 |
commit | 28daee8a3252e03a67484dc8d3dd26fd73af4826 (patch) | |
tree | 41c0d75e27b80a8abdf87a088ed53ac14f3930eb /sw | |
parent | 96c97930d8914d4cfca165c50106308aa9fbf1bb (diff) |
cid#1507361 Unchecked dynamic_cast
Change-Id: Ie1b5c3796cca07e3f41d5074de5c70c5308a2ab4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137166
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/draw/dcontact.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/draw/dcontact.cxx b/sw/source/core/draw/dcontact.cxx index 1ca90b18eec9..0a4c96b922eb 100644 --- a/sw/source/core/draw/dcontact.cxx +++ b/sw/source/core/draw/dcontact.cxx @@ -1634,7 +1634,7 @@ void SwDrawContact::SwClientNotify(const SwModify& rMod, const SfxHint& rHint) { auto pGetZOrdnerHint = static_cast<const sw::GetZOrderHint*>(&rHint); auto pFormat(dynamic_cast<const SwFrameFormat*>(&rMod)); - if(pFormat->Which() == RES_DRAWFRMFMT) + if (pFormat && pFormat->Which() == RES_DRAWFRMFMT) pGetZOrdnerHint->m_rnZOrder = GetMaster()->GetOrdNum(); } else if (rHint.GetId() == SfxHintId::SwGetObjectConnected) |