summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-10-14 09:35:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-10-14 10:59:42 +0100
commite7515cdae07369ced5eca5b5845bd3679bee10b6 (patch)
tree7c773235e28b137d3cf4b995ce5cbcebfc867edb /sd
parent8e7306604d3e5ac883abef1f3518ae04a392431f (diff)
coverity#1326209 Dereference after null check
Change-Id: Ie8a10cb0f92758b45aff456f52331092e8a4e1df
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/func/fuformatpaintbrush.cxx2
1 files changed, 1 insertions, 1 deletions
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;