diff options
author | Leyla Farazha <leyla@lindenlab.com> | 2010-01-11 16:05:42 -0800 |
---|---|---|
committer | Leyla Farazha <leyla@lindenlab.com> | 2010-01-11 16:05:42 -0800 |
commit | 1a35fe8725d4a55ef1e1b07d59db8e8d0db5e6bf (patch) | |
tree | 04895ab55cf6ab33f1412131c76a71f4f4d549d4 /indra/llui/llfloater.cpp | |
parent | 8440d99e4498882dfc61459a91eba746ad717000 (diff) | |
parent | 2aaa7971945823f53f0a01028036c37361bcfa17 (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()); + } } } |