mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6481 Summary Plot: Detect cumulative fluid components
This commit is contained in:
@@ -871,9 +871,15 @@ bool RifEclipseSummaryAddress::isValidEclipseCategory() const
|
||||
QString RifEclipseSummaryAddress::baseQuantityName( const QString& quantityName )
|
||||
{
|
||||
QString qBaseName = quantityName;
|
||||
|
||||
if ( qBaseName.size() == 8 ) qBaseName.chop( 3 );
|
||||
while ( qBaseName.endsWith( "_" ) )
|
||||
qBaseName.chop( 1 );
|
||||
|
||||
auto indexToUnderScore = qBaseName.indexOf( "_" );
|
||||
if ( indexToUnderScore > 0 )
|
||||
{
|
||||
qBaseName = qBaseName.left( indexToUnderScore );
|
||||
}
|
||||
|
||||
return qBaseName;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user