diff options
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/llui/llmenugl.cpp | 12 | 
1 files changed, 8 insertions, 4 deletions
| diff --git a/indra/llui/llmenugl.cpp b/indra/llui/llmenugl.cpp index e0e86ae228..779779c7bc 100644 --- a/indra/llui/llmenugl.cpp +++ b/indra/llui/llmenugl.cpp @@ -3726,10 +3726,14 @@ void LLContextMenuBranch::buildDrawLabel( void )  void	LLContextMenuBranch::showSubMenu()  { -	S32 center_x; -	S32 center_y; -	localPointToScreen(getRect().getWidth(), getRect().getHeight() , ¢er_x, ¢er_y); -	mBranch->show(	center_x, center_y); +	LLMenuItemGL* menu_item = mBranch->getParentMenuItem(); +	if (menu_item != NULL && menu_item->getVisible()) +	{ +		S32 center_x; +		S32 center_y; +		localPointToScreen(getRect().getWidth(), getRect().getHeight() , ¢er_x, ¢er_y); +		mBranch->show(center_x, center_y); +	}  }  // onCommit() - do the primary funcationality of the menu item. | 
