diff options
author | richard <none@none> | 2010-01-11 14:48:28 -0800 |
---|---|---|
committer | richard <none@none> | 2010-01-11 14:48:28 -0800 |
commit | 34f33212de1a69281bc5cb639b035d9465d8f846 (patch) | |
tree | f245e1ffc4348665f01b6532717bfa31516966ff /indra/llui/llfloater.cpp | |
parent | fb9a20802f3386bee82a8bd9a479f209374fa9a4 (diff) | |
parent | 3e5f5a205034cde29ef80a9230d8cd4867e6dec5 (diff) |
merge
Diffstat (limited to 'indra/llui/llfloater.cpp')
-rw-r--r-- | indra/llui/llfloater.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/llui/llfloater.cpp b/indra/llui/llfloater.cpp index 845203b420..a35d279500 100644 --- a/indra/llui/llfloater.cpp +++ b/indra/llui/llfloater.cpp @@ -878,9 +878,11 @@ void LLFloater::setSnappedTo(const LLView* snap_view) else { //RN: assume it's a floater as it must be a sibling to our parent floater - LLFloater* floaterp = (LLFloater*)snap_view; - - setSnapTarget(floaterp->getHandle()); + const LLFloater* floaterp = dynamic_cast<const LLFloater*>(snap_view); + if (floaterp) + { + setSnapTarget(floaterp->getHandle()); + } } } |