mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix crash in ensemble plot duplicate
This commit is contained in:
parent
039ec05ab8
commit
329e1e8b69
@ -869,14 +869,17 @@ void RimSummaryMultiPlot::computeAggregatedAxisRange()
|
|||||||
axisRangeAggregation == AxisRangeAggregation::REGIONS )
|
axisRangeAggregation == AxisRangeAggregation::REGIONS )
|
||||||
{
|
{
|
||||||
RiaSummaryAddressAnalyzer analyzer;
|
RiaSummaryAddressAnalyzer analyzer;
|
||||||
auto ensemble = curve->summaryCaseY()->ensemble();
|
if ( curve->summaryCaseY() )
|
||||||
if ( ensemble )
|
|
||||||
{
|
{
|
||||||
analyzer.appendAddresses( ensemble->ensembleSummaryAddresses() );
|
auto ensemble = curve->summaryCaseY()->ensemble();
|
||||||
}
|
if ( ensemble )
|
||||||
else
|
{
|
||||||
{
|
analyzer.appendAddresses( ensemble->ensembleSummaryAddresses() );
|
||||||
analyzer.appendAddresses( curve->summaryCaseY()->summaryReader()->allResultAddresses() );
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
analyzer.appendAddresses( curve->summaryCaseY()->summaryReader()->allResultAddresses() );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( axisRangeAggregation == AxisRangeAggregation::WELLS )
|
if ( axisRangeAggregation == AxisRangeAggregation::WELLS )
|
||||||
|
Loading…
Reference in New Issue
Block a user