SL-12173 Crash on setShape

meow-7.2.2
andreykproductengine 2019-10-22 17:17:12 +03:00
parent 7d7b60a9be
commit 07635d22f5
1 changed files with 5 additions and 0 deletions

View File

@ -1994,6 +1994,11 @@ void LLViewerWindow::initBase()
LLPanel* panel_holder = main_view->getChild<LLPanel>("toolbar_view_holder");
// Load the toolbar view from file
gToolBarView = LLUICtrlFactory::getInstance()->createFromFile<LLToolBarView>("panel_toolbar_view.xml", panel_holder, LLDefaultChildRegistry::instance());
if (!gToolBarView)
{
LL_ERRS() << "Failed to initialize viewer: Viewer couldn't process file panel_toolbar_view.xml, "
<< "if this problem happens again, please validate your installation." << LL_ENDL;
}
gToolBarView->setShape(panel_holder->getLocalRect());
// Hide the toolbars for the moment: we'll make them visible after logging in world (see LLViewerWindow::initWorldUI())
gToolBarView->setVisible(FALSE);