MAINT-2465 FIXED Viewer crash when hovering in fast timers floater

Mnikolenko Productengine 2016-10-31 17:47:38 +02:00
parent 52924e3c04
commit 6bc8ab5968
1 changed files with 2 additions and 2 deletions

View File

@ -243,7 +243,7 @@ BOOL LLFastTimerView::handleHover(S32 x, S32 y, MASK mask)
{
return TRUE;
}
else if (mHoverBarIndex == -1)
else if (mHoverBarIndex < 0)
{
mHoverBarIndex = 0;
}
@ -283,7 +283,7 @@ BOOL LLFastTimerView::handleHover(S32 x, S32 y, MASK mask)
{
hover_bar = &bar;
if (bar.mTimeBlock->getTreeNode().mCollapsed)
{
{
// stop on first collapsed BlockTimerStatHandle, since we can't select any children
break;
}