summaryrefslogtreecommitdiff
path: root/indra/llui/llresizebar.cpp
diff options
context:
space:
mode:
authorSteve Bennetts <steve@lindenlab.com>2009-11-29 18:25:03 -0800
committerSteve Bennetts <steve@lindenlab.com>2009-11-29 18:25:03 -0800
commita7549d6fe5b36b447f7e6f58387711576f9c2f63 (patch)
tree63d81cf896b107cf35b3eecabefc032e021574df /indra/llui/llresizebar.cpp
parent5bff5d28ee0cd6b2d17bf1676eecb0ae262f1f48 (diff)
parentf0426b924f543c62268ac5098c0c2c6a44e68084 (diff)
Merge
Diffstat (limited to 'indra/llui/llresizebar.cpp')
-rw-r--r--indra/llui/llresizebar.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/llui/llresizebar.cpp b/indra/llui/llresizebar.cpp
index a7cf9be277..0c46edf300 100644
--- a/indra/llui/llresizebar.cpp
+++ b/indra/llui/llresizebar.cpp
@@ -144,9 +144,10 @@ BOOL LLResizeBar::handleHover(S32 x, S32 y, MASK mask)
if( valid_rect.localPointInRect( screen_x, screen_y ) && mResizingView )
{
// undock floater when user resize it
- if (((LLFloater*)getParent())->isDocked())
+ LLFloater* parent = dynamic_cast<LLFloater*>( getParent());
+ if (parent && parent->isDocked())
{
- ((LLFloater*)getParent())->setDocked(false, false);
+ parent->setDocked( false, false);
}
// Resize the parent