#8652 Import Surface: Fix ts-file import with properties on Linux (#8730)

The file had DOS line endings (\t\n) which where not properly trimmed on linux.

Fixes #8652.
This commit is contained in:
Kristian Bendiksen
2022-03-25 14:16:25 +01:00
committed by GitHub
parent 80234ca105
commit 86ea679871
4 changed files with 92 additions and 6 deletions

View File

@@ -89,7 +89,7 @@ void RifSurfaceImporter::readGocadFile( const QString& filename, RigGocadData* g
auto tokens = RiaStdStringTools::splitString( line, ' ' );
std::string firstToken;
if ( !tokens.empty() ) firstToken = tokens.front();
if ( !tokens.empty() ) firstToken = RiaStdStringTools::trimString( tokens.front() );
if ( isInTfaceSection )
{