diff options
author | Merov Linden <merov@lindenlab.com> | 2012-01-17 07:39:14 -0800 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2012-01-17 07:39:14 -0800 |
commit | 0e7956a4cbdb0772ff6175307475ee6fc8b620ea (patch) | |
tree | 8f93e7be03913eefb9f1b6cf766aa07278ae2bd9 /indra | |
parent | 7092a07045e0bc17c503c0bc81e3f038bd1516e8 (diff) |
EXP-1758 : Fix crash on login on Mac (bad pointer reference). Might need more work if the intent was to always get that pointer.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/llui/lllayoutstack.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/llui/lllayoutstack.cpp b/indra/llui/lllayoutstack.cpp index a1e8eebb47..ac10afe594 100644 --- a/indra/llui/lllayoutstack.cpp +++ b/indra/llui/lllayoutstack.cpp @@ -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); } |