mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-11 07:56:08 -06:00
#2227 Well formations: Handle "+" in formation name file input
This commit is contained in:
parent
c3cd0a650e
commit
864b9466d5
@ -280,6 +280,12 @@ RigWellPathFormations::FormationLevel RigWellPathFormations::detectLevel(QString
|
|||||||
|
|
||||||
QString levelDescriptor = levelDesctiptorCandidates[0];
|
QString levelDescriptor = levelDesctiptorCandidates[0];
|
||||||
|
|
||||||
|
QStringList joinedLevel = levelDescriptor.split('+');
|
||||||
|
if ( joinedLevel.size() > 1 )
|
||||||
|
{
|
||||||
|
levelDescriptor = joinedLevel[0];
|
||||||
|
}
|
||||||
|
|
||||||
int dotCount = levelDescriptor.count('.');
|
int dotCount = levelDescriptor.count('.');
|
||||||
|
|
||||||
size_t level = dotCount + 1;
|
size_t level = dotCount + 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user