coverity#704614 Dereference after null check
Change-Id: I0ee36c064bfd5cbd0aaa2554b36b9b1d51d5e6ec
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user