diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-23 13:12:43 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-23 14:22:42 +0000 |
commit | 1babae95f15544289610afb8458ff9a830ea340e (patch) | |
tree | 07e44161266829655f678b4b04b6c5d3a3e306f6 | |
parent | 057a663043aed3cf0d4e8741e49e150a9467e220 (diff) |
coverity#704614 Dereference after null check
Change-Id: I0ee36c064bfd5cbd0aaa2554b36b9b1d51d5e6ec
-rw-r--r-- | dbaccess/source/ui/control/FieldDescControl.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dbaccess/source/ui/control/FieldDescControl.cxx b/dbaccess/source/ui/control/FieldDescControl.cxx index 06e2b2ddb772..3487c2f970f7 100644 --- a/dbaccess/source/ui/control/FieldDescControl.cxx +++ b/dbaccess/source/ui/control/FieldDescControl.cxx @@ -305,8 +305,7 @@ void OFieldDescControl::CheckScrollBars() for (sal_uInt16 i=0; i<sizeof(ppAggregates)/sizeof(ppAggregates[0]); ++i) getMaxXPosition(ppAggregates[i],lMaxXPosition); - if (m_pHorzScroll) - lMaxXPosition += m_pHorzScroll->GetThumbPos() * HSCROLL_STEP; + lMaxXPosition += m_pHorzScroll->GetThumbPos() * HSCROLL_STEP; long lMaxXAvailable = szOverallSize.Width(); bNeedHScrollBar = lMaxXPosition > lMaxXAvailable; |