Reveal Summary Data: Fix incorrect auto curve name.

RiuSummaryQuantityNameInfoProvider does not provide long names for Reveal
summary vectors. Use the vector name instead of the long name for these
cases.
This commit is contained in:
Kristian Bendiksen 2023-05-30 13:50:38 +02:00
parent 9719390130
commit 9745b48643

View File

@ -204,6 +204,10 @@ QString RimSummaryCurveAutoName::buildCurveName( const RifEclipseSummaryAddress&
text = RiuSummaryQuantityNameInfoProvider::instance()->longNameFromVectorName( quantityName );
if ( m_vectorName ) text += " (" + summaryAddress.vectorName() + ")";
// Handle cases where longNameFromVectorName fails to produce a long name.
// This can happen for non-standard vector names.
if ( text.empty() && !summaryAddress.vectorName().empty() ) text = summaryAddress.vectorName();
}
else
{