From e7515cdae07369ced5eca5b5845bd3679bee10b6 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 14 Oct 2015 09:35:26 +0100 Subject: coverity#1326209 Dereference after null check Change-Id: Ie8a10cb0f92758b45aff456f52331092e8a4e1df --- sd/source/ui/func/fuformatpaintbrush.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sd') diff --git a/sd/source/ui/func/fuformatpaintbrush.cxx b/sd/source/ui/func/fuformatpaintbrush.cxx index 8c6ff03dbadb..6ffcbbd3ef41 100644 --- a/sd/source/ui/func/fuformatpaintbrush.cxx +++ b/sd/source/ui/func/fuformatpaintbrush.cxx @@ -204,7 +204,7 @@ bool FuFormatPaintBrush::MouseButtonUp(const MouseEvent& rMEvt) bool FuFormatPaintBrush::KeyInput(const KeyEvent& rKEvt) { - if( (rKEvt.GetKeyCode().GetCode() == KEY_ESCAPE) && mpViewShell ) + if (rKEvt.GetKeyCode().GetCode() == KEY_ESCAPE) { implcancel(); return true; -- cgit