IfActions: Read condition options after measure value is changed to properly support section variables

This commit is contained in:
Birunthan Mohanathas
2013-11-05 20:43:04 +02:00
parent cf86d365ad
commit b62fca59d0
5 changed files with 32 additions and 90 deletions

View File

@ -2675,13 +2675,9 @@ bool MeterWindow::UpdateMeasure(Measure* measure, bool force)
int updateDivider = measure->GetUpdateDivider();
if (updateDivider >= 0 || force)
{
if (measure->HasDynamicVariables() &&
(measure->GetUpdateCounter() + 1) >= updateDivider)
{
measure->ReadOptions(m_Parser);
}
bUpdate = measure->Update();
const bool rereadOptions =
measure->HasDynamicVariables() && (measure->GetUpdateCounter() + 1) >= updateDivider;
bUpdate = measure->Update(rereadOptions);
}
return bUpdate;