Bug 399692 Restore null-check accidentally removed by bug 399376 r+sr+a=roc

This commit is contained in:
neil@parkwaycc.co.uk 2007-10-15 04:21:25 -07:00
parent def7c7547d
commit 1507d5687b

View File

@ -2433,7 +2433,10 @@ nsTreeBodyFrame::CalcHorzWidth(const ScrollParts& aParts)
{
// Compute the adjustment to the last column. This varies depending on the
// visibility of the columnpicker and the scrollbar.
mAdjustWidth = mRect.width - aParts.mColumnsFrame->GetRect().width;
if (aParts.mColumnsFrame)
mAdjustWidth = mRect.width - aParts.mColumnsFrame->GetRect().width;
else
mAdjustWidth = 0;
nscoord width = 0;
nscoord height;