mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5254 Fix crash when loading well path with disconnected valid points.
This commit is contained in:
parent
c9f5b47a90
commit
a66a1bca22
@ -41,7 +41,11 @@ RiaCurveDataTools::CurveIntervals RiaCurveDataTools::calculateIntervalsOfValidVa
|
||||
{
|
||||
if ( startIdx >= 0 )
|
||||
{
|
||||
intervals.push_back( std::make_pair( startIdx, vIdx - 1 ) );
|
||||
size_t endIdx = vIdx - 1;
|
||||
if ( endIdx > startIdx )
|
||||
{
|
||||
intervals.push_back( std::make_pair( startIdx, endIdx ) );
|
||||
}
|
||||
startIdx = -1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user