Fixed issue with 8330415

This commit is contained in:
Brian Ferguson
2013-01-10 23:48:31 -07:00
parent 83304154a8
commit 61f088e59c
3 changed files with 13 additions and 2 deletions

View File

@ -2693,8 +2693,15 @@ 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 (((*i)->GetOldValue() != newValue || (*i)->GetOldStringValue() != newStringValue) && !changeAction.empty() && m_UpdateCounter > 1)
if (skip)
{
(*i)->SetOldValue(newValue);
(*i)->SetOldStringValue(newStringValue);
(*i)->SetFirstChange(false);
}
else if (((*i)->GetOldValue() != newValue || (*i)->GetOldStringValue() != newStringValue) && !changeAction.empty())
{
(*i)->SetOldValue(newValue);
(*i)->SetOldStringValue(newStringValue);