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() )
|
if ( m_axisProperties->showDescription() )
|
||||||
{
|
{
|
||||||
quantityNameForDisplay =
|
quantityNameForDisplay = RiuSummaryQuantityNameInfoProvider::instance()->longNameFromQuantityName(
|
||||||
RiuSummaryQuantityNameInfoProvider::instance()->longNameFromQuantityName( quantityName, true );
|
quantityName );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( m_axisProperties->showAcronym() )
|
if ( m_axisProperties->showAcronym() )
|
||||||
|
@ -1510,10 +1510,18 @@ void RiuSummaryCurveDefSelection::appendOptionItemsForSubCategoriesAndVectors(
|
|||||||
|
|
||||||
if ( isVectorField )
|
if ( isVectorField )
|
||||||
{
|
{
|
||||||
std::string longVectorName =
|
std::string longVectorName = RiuSummaryQuantityNameInfoProvider::instance()->longNameFromQuantityName(
|
||||||
RiuSummaryQuantityNameInfoProvider::instance()->longNameFromQuantityName( itemName, true );
|
itemName );
|
||||||
displayName = QString::fromStdString( longVectorName );
|
|
||||||
displayName += QString( " (%1)" ).arg( QString::fromStdString( itemName ) );
|
if ( longVectorName.empty() )
|
||||||
|
{
|
||||||
|
displayName = QString::fromStdString( itemName );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
displayName = QString::fromStdString( longVectorName );
|
||||||
|
displayName += QString( " (%1)" ).arg( QString::fromStdString( itemName ) );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user