mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Janitor: Make sure the default legend is configured for intersection results
This commit is contained in:
@@ -387,6 +387,24 @@ void RimIntersectionResultDefinition::update2dIntersectionViews()
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimIntersectionResultDefinition::setDefaultEclipseLegendConfig()
|
||||
{
|
||||
bool useDiscreteLogLevels = false;
|
||||
bool isCategoryResult = m_eclipseResultDefinition->hasCategoryResult();
|
||||
|
||||
auto eclResultDef = this->eclipseResultDefinition();
|
||||
eclResultDef->updateRangesForExplicitLegends( this->regularLegendConfig(),
|
||||
this->ternaryLegendConfig(),
|
||||
this->timeStep() );
|
||||
|
||||
m_legendConfig->setDefaultConfigForResultName( m_eclipseResultDefinition->resultVariable(),
|
||||
useDiscreteLogLevels,
|
||||
isCategoryResult );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user