Make sure we use the correct timestep index to avoid a crash.

This commit is contained in:
jonjenssen 2021-05-26 10:27:15 +02:00 committed by jonjenssen
parent f9fc7cff3a
commit 832bd6c58f

View File

@ -236,7 +236,7 @@ QString RimFaultRAPreprocSettings::startTimeStepGeoMech() const
if ( m_geomechCase() )
{
if ( ( m_startTimestepGeoMech >= 0 ) && ( m_startTimestepGeoMech <= m_geomechCase->timeStepStrings().size() ) )
return m_geomechCase->timeStepStrings()[m_startTimestepEclipse];
return m_geomechCase->timeStepStrings()[m_startTimestepGeoMech];
}
return "";
}