mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-05 21:53:27 -06:00
#7519 Curve calculator: Assign unique ID after copy of calculation
Avoid duplicate entries in summary selection dialog
This commit is contained in:
parent
b673fe2600
commit
fd8d38c4f0
@ -88,6 +88,8 @@ RimSummaryCalculation* RimSummaryCalculationCollection::addCalculationCopy( cons
|
||||
expression.replace( currVarName, newVarName );
|
||||
calcCopy->setExpression( expression );
|
||||
|
||||
RimProject::current()->assignCalculationIdToCalculation( calcCopy );
|
||||
|
||||
m_calculations.push_back( calcCopy );
|
||||
|
||||
calcCopy->resolveReferencesRecursively();
|
||||
|
@ -1036,7 +1036,11 @@ std::set<RifEclipseSummaryAddress> RiuSummaryVectorSelectionUi::findPossibleSumm
|
||||
|
||||
if ( sumCase )
|
||||
{
|
||||
if ( !isObservedData( sumCase ) ) sources.push_back( sumCase );
|
||||
auto calculated = dynamic_cast<RimCalculatedSummaryCase*>( sumCase );
|
||||
if ( !isObservedData( sumCase ) && !calculated )
|
||||
{
|
||||
sources.push_back( sumCase );
|
||||
}
|
||||
}
|
||||
else if ( ensemble )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user