Max size constraints can be NULL.

This commit is contained in:
czeidler 2012-10-25 18:54:45 +13:00
parent 97d1235cef
commit 26fbc34f1b

View File

@ -613,8 +613,10 @@ void
Area::_UpdateMaxSizeConstraint(BSize max)
{
if (!fLayoutItem->IsVisible()) {
fMaxContentHeight->SetRightSide(B_SIZE_UNLIMITED);
fMaxContentWidth->SetRightSide(B_SIZE_UNLIMITED);
if (fMaxContentHeight != NULL)
fMaxContentHeight->SetRightSide(B_SIZE_UNLIMITED);
if (fMaxContentWidth != NULL)
fMaxContentWidth->SetRightSide(B_SIZE_UNLIMITED);
return;
}