diff options
author | richard <none@none> | 2010-01-13 18:18:03 -0800 |
---|---|---|
committer | richard <none@none> | 2010-01-13 18:18:03 -0800 |
commit | 01c65e891d477b2f162cb277a2b06a6d3a4a0e9f (patch) | |
tree | fb34de1c09c931186a595093c35bde5ac66f448e /indra/llui/llfloater.cpp | |
parent | 630f1546881d6879b3ad4e3165413138d69a27cd (diff) | |
parent | faae541261f4e606fd1b90927818bd9239700635 (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()); + } } } |