mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5169 Observed Data : Do not repeat curve name twice
This commit is contained in:
@@ -1510,10 +1510,18 @@ void RiuSummaryCurveDefSelection::appendOptionItemsForSubCategoriesAndVectors(
|
||||
|
||||
if ( isVectorField )
|
||||
{
|
||||
std::string longVectorName =
|
||||
RiuSummaryQuantityNameInfoProvider::instance()->longNameFromQuantityName( itemName, true );
|
||||
displayName = QString::fromStdString( longVectorName );
|
||||
displayName += QString( " (%1)" ).arg( QString::fromStdString( itemName ) );
|
||||
std::string longVectorName = RiuSummaryQuantityNameInfoProvider::instance()->longNameFromQuantityName(
|
||||
itemName );
|
||||
|
||||
if ( longVectorName.empty() )
|
||||
{
|
||||
displayName = QString::fromStdString( itemName );
|
||||
}
|
||||
else
|
||||
{
|
||||
displayName = QString::fromStdString( longVectorName );
|
||||
displayName += QString( " (%1)" ).arg( QString::fromStdString( itemName ) );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user