#2227 Well formations: Handle "+" in formation name file input

This commit is contained in:
Rebecca Cox 2017-12-11 13:51:01 +01:00
parent c3cd0a650e
commit 864b9466d5

View File

@ -280,6 +280,12 @@ RigWellPathFormations::FormationLevel RigWellPathFormations::detectLevel(QString
QString levelDescriptor = levelDesctiptorCandidates[0];
QStringList joinedLevel = levelDescriptor.split('+');
if ( joinedLevel.size() > 1 )
{
levelDescriptor = joinedLevel[0];
}
int dotCount = levelDescriptor.count('.');
size_t level = dotCount + 1;