From aacf631b0f142d9d90afc3843abcca67e158f883 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 21 Feb 2022 12:02:33 +0000 Subject: 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 --- sw/source/core/layout/fly.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw') 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()); } -- cgit