diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-21 15:38:08 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-21 15:52:25 +0000 |
commit | 94319e31f08310266280307be08f78311385ca6d (patch) | |
tree | 7d60d8067c155937360e1ed96ee5a1278d7eda18 /sw | |
parent | 899da0c87348cc298fe8ab43c905eaaab977f781 (diff) |
coverity#705953 Dereference before null check
Change-Id: Ia9d6af4d601b76dfb9e950fdb4bdaf283f3e985c
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/index/cnttab.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx index 54437b40b236..dcb8bc612338 100644 --- a/sw/source/ui/index/cnttab.cxx +++ b/sw/source/ui/index/cnttab.cxx @@ -3201,14 +3201,11 @@ void SwTokenWindow::AdjustScrolling() } else { - if(pFirstCtrl) - { - //if the control fits into the space then the first control must be at postion 0 - long nFirstPos = pFirstCtrl->GetPosPixel().X(); + //if the control fits into the space then the first control must be at postion 0 + long nFirstPos = pFirstCtrl->GetPosPixel().X(); - if(nFirstPos != 0) - MoveControls(-nFirstPos); - } + if(nFirstPos != 0) + MoveControls(-nFirstPos); m_pRightScrollWin->Enable(false); m_pLeftScrollWin->Enable(false); |