mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5117 Sep Inter Res: Fix missing use of cathegory legend
This commit is contained in:
parent
f446d58b60
commit
6ac18d52ff
@ -231,6 +231,25 @@ void RimIntersectionResultDefinition::updateLegendRangesTextAndVisibility( RiuVi
|
||||
{
|
||||
if ( !this->isInAction() ) return;
|
||||
|
||||
if ( ( this->isEclipseResultDefinition() && m_eclipseResultDefinition()->hasCategoryResult() ) ||
|
||||
( !this->isEclipseResultDefinition() && m_geomResultDefinition()->hasCategoryResult() ) )
|
||||
{
|
||||
regularLegendConfig()->setMappingMode( RimRegularLegendConfig::CATEGORY_INTEGER );
|
||||
regularLegendConfig()->setColorRange( RimRegularLegendConfig::CATEGORY );
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( regularLegendConfig()->mappingMode() == RimRegularLegendConfig::CATEGORY_INTEGER )
|
||||
{
|
||||
regularLegendConfig()->setMappingMode( RimRegularLegendConfig::LINEAR_CONTINUOUS );
|
||||
}
|
||||
|
||||
if ( regularLegendConfig()->colorRange() == RimRegularLegendConfig::CATEGORY )
|
||||
{
|
||||
regularLegendConfig()->setColorRange( RimRegularLegendConfig::NORMAL );
|
||||
}
|
||||
}
|
||||
|
||||
if ( this->isEclipseResultDefinition() )
|
||||
{
|
||||
RimEclipseResultDefinition* eclResultDef = this->eclipseResultDefinition();
|
||||
|
Loading…
Reference in New Issue
Block a user