From 1cc80c60ca37453a8a15f84e61cb2491f2f57403 Mon Sep 17 00:00:00 2001 From: Andrew Dyukov Date: Fri, 27 Nov 2009 19:25:33 +0200 Subject: Fixed major bug EXT-2774(Crash when trying to resize top Menu with Fav bar and Nav bar closed). --HG-- branch : product-engine --- indra/llui/llresizebar.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'indra/llui') 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( getParent()); + if (parent && parent->isDocked()) { - ((LLFloater*)getParent())->setDocked(false, false); + parent->setDocked( false, false); } // Resize the parent -- cgit v1.2.3