#6203 Fracture Model: Allow trailing seperator in import of elastic table csv.

This commit is contained in:
Kristian Bendiksen
2020-09-03 10:27:05 +02:00
parent bb7f7ff54e
commit eaea8b6134
2 changed files with 26 additions and 1 deletions

View File

@@ -79,7 +79,9 @@ RifElasticProperties
{
QStringList tokens = tokenize( line, "," );
if ( tokens.size() != 13 )
// Plus one to allow trailing separator
const int expectedTokens = 13;
if ( !( tokens.size() == expectedTokens || tokens.size() == expectedTokens + 1 ) )
{
throw FileParseException( QString( "Incomplete data on line %1: %2" ).arg( lineNumber ).arg( filePath ) );
}