coverity#704614 Dereference after null check

Change-Id: I0ee36c064bfd5cbd0aaa2554b36b9b1d51d5e6ec
This commit is contained in:
Caolán McNamara
2014-02-23 13:12:43 +00:00
parent 057a663043
commit 1babae95f1

View File

@@ -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;