mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 17:02:13 -05:00
Make sure we use the correct timestep index to avoid a crash.
This commit is contained in:
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 "";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user