summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorAndrew Dyukov <adyukov@productengine.com>2009-11-27 19:25:33 +0200
committerAndrew Dyukov <adyukov@productengine.com>2009-11-27 19:25:33 +0200
commit1cc80c60ca37453a8a15f84e61cb2491f2f57403 (patch)
tree9e524a58bb6730b552f90d357f45f5d02950412a /indra/llui
parent857bc15a39018a75b04ed39430466880c24b3f48 (diff)
Fixed major bug EXT-2774(Crash when trying to resize top Menu with
Fav bar and Nav bar closed). --HG-- branch : product-engine
Diffstat (limited to 'indra/llui')
-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