EXP-1758 : Fix crash on login on Mac (bad pointer reference). Might need more work if the intent was to always get that pointer.

master
Merov Linden 2012-01-17 07:39:14 -08:00
parent 7092a07045
commit 0e7956a4cb
1 changed files with 4 additions and 1 deletions

View File

@ -156,7 +156,10 @@ void LLLayoutPanel::setVisible( BOOL visible )
if (visible != getVisible())
{
LLLayoutStack* stackp = dynamic_cast<LLLayoutStack*>(getParent());
stackp->mNeedsLayout = true;
if (stackp)
{
stackp->mNeedsLayout = true;
}
}
LLPanel::setVisible(visible);
}