mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#4750 Summary : Use first ensemble case if no standalone case is found
This commit is contained in:
parent
86b1264a7b
commit
5a2bea38f7
@ -68,6 +68,17 @@ void RicNewSummaryCurveFeature::onActionTriggered( bool isChecked )
|
|||||||
defaultCase = project->activeOilField()->summaryCaseMainCollection()->summaryCase( 0 );
|
defaultCase = project->activeOilField()->summaryCaseMainCollection()->summaryCase( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( !defaultCase )
|
||||||
|
{
|
||||||
|
std::vector<RimSummaryCase*> allSummaryCases =
|
||||||
|
project->activeOilField()->summaryCaseMainCollection()->allSummaryCases();
|
||||||
|
|
||||||
|
if ( !allSummaryCases.empty() )
|
||||||
|
{
|
||||||
|
defaultCase = allSummaryCases.front();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
RimSummaryCurve* newCurve = RicSummaryPlotFeatureImpl::addDefaultCurveToPlot( plot, defaultCase );
|
RimSummaryCurve* newCurve = RicSummaryPlotFeatureImpl::addDefaultCurveToPlot( plot, defaultCase );
|
||||||
|
|
||||||
plot->applyDefaultCurveAppearances();
|
plot->applyDefaultCurveAppearances();
|
||||||
|
Loading…
Reference in New Issue
Block a user