From b1dd2f3099d9bfd03d2f1e7928beefd5e8716ae0 Mon Sep 17 00:00:00 2001 From: Richard Linden <none@none> Date: Wed, 17 Feb 2010 22:22:14 -0800 Subject: [PATCH] EXT-5515 - Allow resizing on left and lower left of nearby media popup --- indra/llui/llresizehandle.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/indra/llui/llresizehandle.cpp b/indra/llui/llresizehandle.cpp index 3df09d124ab..367666efbd1 100644 --- a/indra/llui/llresizehandle.cpp +++ b/indra/llui/llresizehandle.cpp @@ -136,9 +136,10 @@ BOOL LLResizeHandle::handleHover(S32 x, S32 y, MASK mask) if( resizing_view ) { // undock floater when user resize it - if (((LLFloater*)getParent())->isDocked()) + LLFloater* floater_parent = dynamic_cast<LLFloater*>(getParent()); + if (floater_parent && floater_parent->isDocked()) { - ((LLFloater*)getParent())->setDocked(false, false); + floater_parent->setDocked(false, false); } // Resize the parent -- GitLab