Allow intervals with only one valid value in curves

This commit is contained in:
Gaute Lindkvist
2020-02-04 11:42:31 +01:00
parent 925e4496ea
commit 56f07e6dae
2 changed files with 3 additions and 6 deletions

View File

@@ -42,10 +42,7 @@ RiaCurveDataTools::CurveIntervals RiaCurveDataTools::calculateIntervalsOfValidVa
if ( startIdx >= 0 )
{
size_t endIdx = vIdx - 1;
if ( endIdx > startIdx )
{
intervals.push_back( std::make_pair( startIdx, endIdx ) );
}
intervals.push_back( std::make_pair( startIdx, endIdx ) );
startIdx = -1;
}
}