Additional change for r973.

This commit is contained in:
Birunthan Mohanathas 2011-09-26 17:46:31 +00:00
parent 477610f832
commit 573c96d4fe

View File

@ -1478,7 +1478,7 @@ void CMeterWindow::SetOption(const WCHAR* arg, bool group)
for (std::list<CMeasure*>::const_iterator i = m_Measures.begin(); i != m_Measures.end(); ++i) for (std::list<CMeasure*>::const_iterator i = m_Measures.begin(); i != m_Measures.end(); ++i)
{ {
if ((*i)->BelongsToGroup(section) && dynamic_cast<CMeasurePlugin*>(*i) == NULL) if ((*i)->BelongsToGroup(section))
{ {
// Force DynamicVariables temporarily (it will reset back to original setting in ReadConfig()) // Force DynamicVariables temporarily (it will reset back to original setting in ReadConfig())
(*i)->SetDynamicVariables(true); (*i)->SetDynamicVariables(true);
@ -1515,7 +1515,7 @@ void CMeterWindow::SetOption(const WCHAR* arg, bool group)
} }
CMeasure* measure = GetMeasure(section); CMeasure* measure = GetMeasure(section);
if (measure && dynamic_cast<CMeasurePlugin*>(measure) == NULL) if (measure)
{ {
// Force DynamicVariables temporarily (it will reset back to original setting in ReadConfig()) // Force DynamicVariables temporarily (it will reset back to original setting in ReadConfig())
measure->SetDynamicVariables(true); measure->SetDynamicVariables(true);