EXP-1758 : Fix crash on login on Mac (bad pointer reference). Might need more work if the intent was to always get that pointer.
parent
7092a07045
commit
0e7956a4cb
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue