diff --git a/indra/llui/llmultifloater.cpp b/indra/llui/llmultifloater.cpp index 08c14b78ff..a79db3ad3c 100755 --- a/indra/llui/llmultifloater.cpp +++ b/indra/llui/llmultifloater.cpp @@ -344,7 +344,14 @@ void LLMultiFloater::removeFloater(LLFloater* floaterp) updateResizeLimits(); - tabOpen((LLFloater*)mTabContainer->getCurrentPanel(), false); + // Use dynamic cast instead of c-style cast; found by Cinder Roxley + //tabOpen((LLFloater*)mTabContainer->getCurrentPanel(), false); + LLFloater* tab_floaterp = dynamic_cast(mTabContainer->getCurrentPanel()); + if (tab_floaterp) + { + tabOpen(tab_floaterp, false); + } + // } void LLMultiFloater::tabOpen(LLFloater* opened_floater, bool from_click)