#2041 Curve calc. Parse expression automatically after creating new calculation

This commit is contained in:
Bjørn Erik Jensen 2017-11-03 11:51:51 +01:00
parent abcbe963eb
commit 189a1478eb

View File

@ -51,6 +51,7 @@ RimSummaryCalculation* RimSummaryCalculationCollection::addCalculation()
QString varName = QString("Calculation_%1").arg(m_calcuations.size() + 1);
calculation->setDescription(varName);
calculation->setDefaultExpression(varName + " := a + b");
calculation->parseExpression();
m_calcuations.push_back(calculation);