I messed up and confused data_size with the number of items in the

array.. also did some clean up for readability.
This commit is contained in:
phr0z3nt04st
2010-05-27 18:59:45 -05:00
parent e6aa35608f
commit 8e612ae59f
2 changed files with 11 additions and 4 deletions

View File

@@ -422,12 +422,15 @@ BOOL LLMessageLogFilterApply::tick()
{
std::deque<LLMessageLogEntry>::iterator end = LLFloaterMessageLog::sMessageLogEntries.end();
if(mIter == end || !LLFloaterMessageLog::sInstance)
mFinished = TRUE;
if(mFinished)
{
mFinished = TRUE;
if(LLFloaterMessageLog::sInstance)
{
if(LLFloaterMessageLog::sInstance->mMessageLogFilterApply == this)
{
LLFloaterMessageLog::sInstance->stopApplyingFilter();
}
}
return TRUE;
}
for(S32 i = 0; i < 256; i++)
@@ -436,8 +439,12 @@ BOOL LLMessageLogFilterApply::tick()
{
mFinished = TRUE;
if(LLFloaterMessageLog::sInstance)
{
if(LLFloaterMessageLog::sInstance->mMessageLogFilterApply == this)
{
LLFloaterMessageLog::sInstance->stopApplyingFilter();
}
}
return TRUE;
}