diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-11-16 20:09:51 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-11-16 20:46:32 +0000 |
commit | 8652830eeea97c98a7b910651630c3c0d8c354ec (patch) | |
tree | 3c67b2159da0dc26e297544e919d221aa6963fca | |
parent | aea2dbc319e1e1069d3af4bbc828eb0001cd6ece (diff) |
coverity#1251173 Dereference before null check
Change-Id: I5fb5ef73a40162dea1356dde03ceaa75a65f842a
-rw-r--r-- | sd/source/ui/view/drviewse.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sd/source/ui/view/drviewse.cxx b/sd/source/ui/view/drviewse.cxx index f5b977c4950b..100d1f82a475 100644 --- a/sd/source/ui/view/drviewse.cxx +++ b/sd/source/ui/view/drviewse.cxx @@ -626,6 +626,9 @@ void DrawViewShell::FuPermanent(SfxRequest& rReq) void DrawViewShell::FuDeleteSelectedObjects() { + if( !mpDrawView ) + return; + bool bConsumed = false; //if any placeholders are selected @@ -667,7 +670,7 @@ void DrawViewShell::FuDeleteSelectedObjects() bConsumed = true; } - if (!bConsumed && mpDrawView) + if (!bConsumed) { ::vcl::KeyCode aKCode(KEY_DELETE); KeyEvent aKEvt( 0, aKCode); |