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

This commit is contained in:
jonjenssen authored and jonjenssen committed 2021-05-26 10:44:01 +02:00
1 parent f9fc7cff3a
commit 832bd6c58f
1 file changed
+1 -1
@@ -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 "";
}