summaryrefslogtreecommitdiff
path: root/indra/llui/llfloater.cpp
diff options
context:
space:
mode:
authorLeyla Farazha <leyla@lindenlab.com>2010-01-11 16:05:42 -0800
committerLeyla Farazha <leyla@lindenlab.com>2010-01-11 16:05:42 -0800
commit1a35fe8725d4a55ef1e1b07d59db8e8d0db5e6bf (patch)
tree04895ab55cf6ab33f1412131c76a71f4f4d549d4 /indra/llui/llfloater.cpp
parent8440d99e4498882dfc61459a91eba746ad717000 (diff)
parent2aaa7971945823f53f0a01028036c37361bcfa17 (diff)
Merge
Diffstat (limited to 'indra/llui/llfloater.cpp')
-rw-r--r--indra/llui/llfloater.cpp8
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());
+ }
}
}