Revised previous commit

This commit is contained in:
Brian Ferguson
2013-01-11 00:23:21 -07:00
parent 61f088e59c
commit 69762e1b05
3 changed files with 2 additions and 8 deletions

View File

@ -2693,13 +2693,11 @@ void CMeterWindow::Update(bool refresh)
double newValue = (*i)->GetValue();
const WCHAR* newStringValue = (*i)->GetStringValue(AUTOSCALE_OFF, 1, -1, false);
std::wstring changeAction = (*i)->GetOnChangeAction();
bool skip = (*i)->GetFirstChange();
if (skip)
if (refresh)
{
(*i)->SetOldValue(newValue);
(*i)->SetOldStringValue(newStringValue);
(*i)->SetFirstChange(false);
}
else if (((*i)->GetOldValue() != newValue || (*i)->GetOldStringValue() != newStringValue) && !changeAction.empty())
{