diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-02-21 12:02:33 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2022-02-27 10:38:53 +0100 |
commit | aacf631b0f142d9d90afc3843abcca67e158f883 (patch) | |
tree | dbef077f0ef4cb04d30f4d45fcdeed52c8ced57e /sw | |
parent | cde32f55b091d68ff849711aae295ebc6216f683 (diff) |
cid#1500612 Dereference after null check
otherwise this doesn't make sense
Change-Id: I321a86cf8f9f05639b686a4c15b2e8fca2e10955
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130255
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/fly.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/layout/fly.cxx b/sw/source/core/layout/fly.cxx index 8a6cad12ecfc..1a0a93e5fc01 100644 --- a/sw/source/core/layout/fly.cxx +++ b/sw/source/core/layout/fly.cxx @@ -1909,7 +1909,7 @@ void SwFlyFrame::ActiveUnfloatButton(SwWrtShell* pWrtSh) SwEditWin& rEditWin = pWrtSh->GetView().GetEditWin(); SwFrameControlsManager& rMngr = rEditWin.GetFrameControlsManager(); SwFrameControlPtr pControl = rMngr.GetControl(FrameControlType::FloatingTable, this); - if (pControl || pControl->GetWindow()) + if (pControl && pControl->GetWindow()) { pControl->GetWindow()->MouseButtonDown(MouseEvent()); } |