Fix crash in LLMultiFloater::setCanResize()
Reviewed (conceptually) by Richard and Jamesmeow-7.2.2
parent
8518ac3e29
commit
c54faf2823
|
|
@ -127,7 +127,7 @@ LLFloater* LLFloaterReg::getInstance(const std::string& name, const LLSD& key)
|
|||
bool success = LLUICtrlFactory::getInstance()->buildFloater(res, xui_file, NULL);
|
||||
if (!success)
|
||||
{
|
||||
llwarns << "Failed to buid floater type: '" << name << "'." << llendl;
|
||||
llwarns << "Failed to build floater type: '" << name << "'." << llendl;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -434,6 +434,7 @@ void LLMultiFloater::onTabSelected()
|
|||
void LLMultiFloater::setCanResize(BOOL can_resize)
|
||||
{
|
||||
LLFloater::setCanResize(can_resize);
|
||||
if (!mTabContainer) return;
|
||||
if (isResizable() && mTabContainer->getTabPosition() == LLTabContainer::BOTTOM)
|
||||
{
|
||||
mTabContainer->setRightTabBtnOffset(RESIZE_HANDLE_WIDTH);
|
||||
|
|
@ -457,6 +458,8 @@ BOOL LLMultiFloater::postBuild()
|
|||
}
|
||||
|
||||
mTabContainer = getChild<LLTabContainer>("Preview Tabs");
|
||||
|
||||
setCanResize(mResizable);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue