diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-03-16 09:37:08 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-03-16 09:37:08 +0000 |
commit | e8826d814e4067724b53420c06a79005ad28c943 (patch) | |
tree | 7a1ec7621ed34d547247e4a3f7ff347019a2838c /svtools | |
parent | 338b8bec48cf31822d3de1bd7aa6e212848490be (diff) |
coverity#1355502 Dereference before null check
Change-Id: I2833454ca4afd9e11a6c0c4fb1386f0dbb0d13d8
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/contnr/iconviewimpl.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/svtools/source/contnr/iconviewimpl.cxx b/svtools/source/contnr/iconviewimpl.cxx index e361414a65da..aad4e0fa52be 100644 --- a/svtools/source/contnr/iconviewimpl.cxx +++ b/svtools/source/contnr/iconviewimpl.cxx @@ -511,13 +511,10 @@ bool IconViewImpl::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_RIGHT: |