mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-29 10:21:54 -06:00
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:
parent
9719390130
commit
9745b48643
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user