diff options
| -rw-r--r-- | indra/newview/llbottomtray.cpp | 16 | ||||
| -rw-r--r-- | indra/newview/llnearbychathandler.cpp | 2 | 
2 files changed, 10 insertions, 8 deletions
| diff --git a/indra/newview/llbottomtray.cpp b/indra/newview/llbottomtray.cpp index 9c8482c35d..33d006578d 100644 --- a/indra/newview/llbottomtray.cpp +++ b/indra/newview/llbottomtray.cpp @@ -161,12 +161,14 @@ public:  		mGesturePanel = getChild<LLPanel>("gesture_panel");  		// Hide "show_nearby_chat" button  -		LLLineEditor* chat_box = mNearbyChatBar->getChatBox(); -		LLUICtrl* show_btn = mNearbyChatBar->getChild<LLUICtrl>("show_nearby_chat"); -		S32 delta_width = show_btn->getRect().getWidth(); -		show_btn->setVisible(FALSE); -		chat_box->reshape(chat_box->getRect().getWidth() + delta_width, chat_box->getRect().getHeight()); - +		if (mNearbyChatBar) +		{ +			LLLineEditor* chat_box = mNearbyChatBar->getChatBox(); +			LLUICtrl* show_btn = mNearbyChatBar->getChild<LLUICtrl>("show_nearby_chat"); +			S32 delta_width = show_btn->getRect().getWidth(); +			show_btn->setVisible(FALSE); +			chat_box->reshape(chat_box->getRect().getWidth() + delta_width, chat_box->getRect().getHeight()); +		}  		return TRUE;  	} @@ -226,7 +228,7 @@ LLBottomTray::LLBottomTray(const LLSD&)  	}  	mImageDragIndication = LLUI::getUIImage(getString("DragIndicationImageName")); -	mDesiredNearbyChatWidth = getChild<LLNearbyChatBar>("chat_bar")->getRect().getWidth(); +	mDesiredNearbyChatWidth = mNearbyChatBar ? mNearbyChatBar->getRect().getWidth() : 0;  }  LLBottomTray::~LLBottomTray() diff --git a/indra/newview/llnearbychathandler.cpp b/indra/newview/llnearbychathandler.cpp index f141817b3f..47d32e57fb 100644 --- a/indra/newview/llnearbychathandler.cpp +++ b/indra/newview/llnearbychathandler.cpp @@ -154,7 +154,7 @@ private:  void LLNearbyChatScreenChannel::deactivateToast(LLToast* toast)  { -	std::vector<LLToast*>::iterator pos = std::find(m_active_toasts.begin(), m_active_toasts.end(), toast); +	toast_vec_t::iterator pos = std::find(m_active_toasts.begin(), m_active_toasts.end(), toast->getHandle());  	if (pos == m_active_toasts.end())  	{ | 
