summaryrefslogtreecommitdiff
path: root/indra/llui/llresizebar.cpp
diff options
context:
space:
mode:
authorSergei Litovchuk <slitovchuk@productengine.com>2009-12-01 20:29:26 +0200
committerSergei Litovchuk <slitovchuk@productengine.com>2009-12-01 20:29:26 +0200
commit57fca8d6e8c3c925fc3a3fff8833c4e43db8f24c (patch)
treeb5ac1efe546cedbf337d98a3d2ffbbb5b23e36d1 /indra/llui/llresizebar.cpp
parent56504054d8e0cba815c25035ed7dd71015cf3222 (diff)
parent3385ce87f14f71d739a3834fbf3436a962fbdd9d (diff)
merge
--HG-- branch : product-engine
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