diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-03-16 09:34:41 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-03-16 09:34:41 +0000 |
commit | 338b8bec48cf31822d3de1bd7aa6e212848490be (patch) | |
tree | bae2e5642bb7fa87ebf673aca560254252646608 /svtools | |
parent | ba21f5fc6a15dd2be10082a3c696ddf9a78918d7 (diff) |
coverity#1355503 Dereference before null check
Change-Id: Ie5791423546c15470d0e0aaeb80f8bc9c1c99eeb
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/svimpbox.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx index 7ae23714cfe4..8d72e3105eaf 100644 --- a/svtools/source/contnr/svimpbox.cxx +++ b/svtools/source/contnr/svimpbox.cxx @@ -2152,13 +2152,10 @@ bool SvImpLBox::KeyInput( const KeyEvent& rKEvt) if (!pNewCursor) pNewCursor = pCursor; - if( pNewCursor ) - { - aSelEng.CursorPosChanging( bShift, bMod1 ); - SetCursor( pNewCursor, bMod1 ); // no selection, when Ctrl is on - if( !IsEntryInView( pNewCursor ) ) - KeyUp( false ); - } + aSelEng.CursorPosChanging( bShift, bMod1 ); + SetCursor( pNewCursor, bMod1 ); // no selection, when Ctrl is on + if( !IsEntryInView( pNewCursor ) ) + KeyUp( false ); break; case KEY_DOWN: |