diff options
author | simon <none@none> | 2014-02-27 13:38:21 -0800 |
---|---|---|
committer | simon <none@none> | 2014-02-27 13:38:21 -0800 |
commit | 7ad70e0f245726c98bff382539a60d591ea67aba (patch) | |
tree | 8b4bd5542be44b461741fd59abc5f4362ca60fcf /indra/llui/lldraghandle.cpp | |
parent | 3085c6e18847debc0f7fb6cf3dbcec66aec23687 (diff) | |
parent | 8b28593c107145af24f860b3f8d55568987ac6c0 (diff) |
Merge downstream code
Diffstat (limited to 'indra/llui/lldraghandle.cpp')
-rwxr-xr-x | indra/llui/lldraghandle.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/llui/lldraghandle.cpp b/indra/llui/lldraghandle.cpp index 5f69c6af31..304d21d0df 100755 --- a/indra/llui/lldraghandle.cpp +++ b/indra/llui/lldraghandle.cpp @@ -315,14 +315,15 @@ BOOL LLDragHandle::handleHover(S32 x, S32 y, MASK mask) S32 delta_y = screen_y - mDragLastScreenY; // if dragging a docked floater we want to undock - if (((LLFloater*)getParent())->isDocked()) + LLFloater * parent = dynamic_cast<LLFloater *>(getParent()); + if (parent && parent->isDocked()) { const S32 SLOP = 12; if (delta_y <= -SLOP || delta_y >= SLOP) { - ((LLFloater*)getParent())->setDocked(false, false); + parent->setDocked(false, false); return TRUE; } else |