From 9e2ca10d8aba0d23f38fbfe40887f7372e5881b7 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 4 Jun 2014 11:09:12 +0100 Subject: coverity#705863 Dereference before null check Change-Id: I0e4d3add3adc2e387c5735b75eb5e3638f24c12b --- sd/source/ui/func/fusel.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sd') diff --git a/sd/source/ui/func/fusel.cxx b/sd/source/ui/func/fusel.cxx index 475d31d1b283..032aab75fffd 100644 --- a/sd/source/ui/func/fusel.cxx +++ b/sd/source/ui/func/fusel.cxx @@ -723,13 +723,11 @@ bool FuSelection::MouseButtonUp(const MouseEvent& rMEvt) if (bMirrorSide0 != bMirrorSide1) { bSuppressChangesOfSelection = true; - if(mpWindow) - mpWindow->EnterWait(); + mpWindow->EnterWait(); mpView->End3DCreation(); bSuppressChangesOfSelection = false; nSlotId = SID_OBJECT_SELECT; - if(mpWindow) - mpWindow->LeaveWait(); + mpWindow->LeaveWait(); Activate(); } } -- cgit