mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-10 08:03:05 -06:00
#2041 Curve calc. Parse expression automatically after creating new calculation
This commit is contained in:
parent
abcbe963eb
commit
189a1478eb
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user