diff --git a/ApplicationCode/ProjectDataModel/RimFormationNames.cpp b/ApplicationCode/ProjectDataModel/RimFormationNames.cpp index eabb7f6e83..de1a37ddab 100644 --- a/ApplicationCode/ProjectDataModel/RimFormationNames.cpp +++ b/ApplicationCode/ProjectDataModel/RimFormationNames.cpp @@ -313,4 +313,10 @@ void RimFormationNames::readFmuFormationNameFile( QTextStream& stream, QString* } } } -} \ No newline at end of file + + // Append previous formation at the end of the stream + if ( !currentFormationName.isEmpty() ) + { + m_formationNamesData->appendFormationRange( currentFormationName, startK - 1, endK - 1 ); + } +}