Fix column header tooltips showing up when not over the header itself

This commit is contained in:
Lirusaito
2013-07-16 09:40:33 -04:00
parent 1b734e190c
commit f05fa67786

View File

@@ -87,6 +87,7 @@ void LLScrollColumnHeader::draw()
//virtual
BOOL LLScrollColumnHeader::handleToolTip(S32 x, S32 y, std::string& msg, LLRect* sticky_rect_screen)
{
if (!getRect().pointInRect(x,y)) return false;
std::string tool_tip = LLUI::sShowXUINames ? getShowNamesToolTip() : getToolTip();
if (tool_tip.empty()) tool_tip = getLabelUnselected(); // Fallback on label