mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 15:10:22 -05:00
#14298 Fix crash on out-of-range delta base time step in result info
This commit is contained in:
1 parent
de10dcf0de
commit
abe823c0ae
1 file changed
+7
-3
@@ -1035,9 +1035,13 @@ QString RimEclipseResultDefinition::additionalResultText() const
|
||||
const RigCaseCellResultsData* gridCellResults = currentGridCellResults();
|
||||
if ( gridCellResults )
|
||||
{
|
||||
stepDates = gridCellResults->timeStepDates();
|
||||
resultText += QString( "<b>Base Time Step</b>: %1" )
|
||||
.arg( stepDates[m_timeLapseBaseTimestep()].toString( RiaQDateTimeTools::dateFormatString() ) );
|
||||
stepDates = gridCellResults->timeStepDates();
|
||||
int baseTimeStep = m_timeLapseBaseTimestep();
|
||||
if ( baseTimeStep >= 0 && baseTimeStep < static_cast<int>( stepDates.size() ) )
|
||||
{
|
||||
resultText +=
|
||||
QString( "<b>Base Time Step</b>: %1" ).arg( stepDates[baseTimeStep].toString( RiaQDateTimeTools::dateFormatString() ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
if ( isDeltaCaseActive() )
|
||||
|
||||
Reference in new issue
Block a user