diff --git a/indra/newview/llfloatertools.cpp b/indra/newview/llfloatertools.cpp index c60ab8ca2a..500ec37738 100644 --- a/indra/newview/llfloatertools.cpp +++ b/indra/newview/llfloatertools.cpp @@ -334,15 +334,15 @@ BOOL LLFloaterTools::postBuild() sShowObjectCost = gSavedSettings.getBOOL("ShowObjectRenderingCost"); // Added back more/less button - LLButton* btnExpand = getChild("btnExpand"); + LLButton* btnExpand = findChild("btnExpand"); if (btnExpand && mTab) { mExpandedHeight = getRect().getHeight(); mCollapsedHeight = mExpandedHeight - mTab->getRect().getHeight() + btnExpand->getRect().getHeight(); - if(!gSavedSettings.getBOOL("FSToolboxExpanded")) + if (!gSavedSettings.getBOOL("FSToolboxExpanded")) { mTab->setVisible(FALSE); - reshape( getRect().getWidth(), mCollapsedHeight); + reshape(getRect().getWidth(), mCollapsedHeight); btnExpand->setImageOverlay("Arrow_Down", btnExpand->getImageOverlayHAlign()); } }