coverity#704614 Dereference after null check
Change-Id: I0ee36c064bfd5cbd0aaa2554b36b9b1d51d5e6ec
This commit is contained in:
@@ -305,7 +305,6 @@ void OFieldDescControl::CheckScrollBars()
|
|||||||
for (sal_uInt16 i=0; i<sizeof(ppAggregates)/sizeof(ppAggregates[0]); ++i)
|
for (sal_uInt16 i=0; i<sizeof(ppAggregates)/sizeof(ppAggregates[0]); ++i)
|
||||||
getMaxXPosition(ppAggregates[i],lMaxXPosition);
|
getMaxXPosition(ppAggregates[i],lMaxXPosition);
|
||||||
|
|
||||||
if (m_pHorzScroll)
|
|
||||||
lMaxXPosition += m_pHorzScroll->GetThumbPos() * HSCROLL_STEP;
|
lMaxXPosition += m_pHorzScroll->GetThumbPos() * HSCROLL_STEP;
|
||||||
|
|
||||||
long lMaxXAvailable = szOverallSize.Width();
|
long lMaxXAvailable = szOverallSize.Width();
|
||||||
|
Reference in New Issue
Block a user