Max size constraints can be NULL.
This commit is contained in:
parent
97d1235cef
commit
26fbc34f1b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user