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:
parent
73f5ac5126
commit
04162059b7
@ -220,8 +220,8 @@ QString RimSummaryPlotAxisFormatter::autoAxisTitle() const
|
||||
{
|
||||
if ( m_axisProperties->showDescription() )
|
||||
{
|
||||
quantityNameForDisplay =
|
||||
RiuSummaryQuantityNameInfoProvider::instance()->longNameFromQuantityName( quantityName, true );
|
||||
quantityNameForDisplay = RiuSummaryQuantityNameInfoProvider::instance()->longNameFromQuantityName(
|
||||
quantityName );
|
||||
}
|
||||
|
||||
if ( m_axisProperties->showAcronym() )
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user