mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-27 15:41:00 -05:00
Regression Tests: Fix crash for summary plot with summary x-data
This commit is contained in:
1 parent
545d827774
commit
2fc12a35e2
1 file changed
+5
-2
@@ -2781,8 +2781,6 @@ void RimEnsembleCurveSet::createCurves( const std::vector<RimSummaryCase*>& sumC
|
||||
curve->setAxisTypeX( RiaDefines::HorizontalAxisType::SUMMARY_VECTOR );
|
||||
curve->setSummaryCaseX( sumCase );
|
||||
curve->setSummaryAddressX( m_xAddressSelector->summaryAddress() );
|
||||
if ( m_xAddressSelector->plotAxisProperties() )
|
||||
curve->setTopOrBottomAxisX( m_xAddressSelector->plotAxisProperties()->plotAxis() );
|
||||
}
|
||||
|
||||
curve->setColor( m_colorForRealizations );
|
||||
@@ -2800,6 +2798,11 @@ void RimEnsembleCurveSet::createCurves( const std::vector<RimSummaryCase*>& sumC
|
||||
m_realizationCurves.push_back( curve );
|
||||
|
||||
curve->setLeftOrRightAxisY( axisY() );
|
||||
|
||||
if ( isXAxisSummaryVector() && m_xAddressSelector->plotAxisProperties() )
|
||||
{
|
||||
curve->setTopOrBottomAxisX( m_xAddressSelector->plotAxisProperties()->plotAxis() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user