mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#5874 Remove direct accessor to obsoleted RimRegularLegendConfig::colorRange field.
This commit is contained in:
committed by
Magne Sjaastad
parent
f578f1f954
commit
0b9577df71
@@ -240,7 +240,8 @@ void RimIntersectionResultDefinition::updateLegendRangesTextAndVisibility( const
|
||||
( !this->isEclipseResultDefinition() && m_geomResultDefinition()->hasCategoryResult() ) )
|
||||
{
|
||||
regularLegendConfig()->setMappingMode( RimRegularLegendConfig::CATEGORY_INTEGER );
|
||||
regularLegendConfig()->setColorRange( RimRegularLegendConfig::CATEGORY );
|
||||
regularLegendConfig()->setColorLegend(
|
||||
RimRegularLegendConfig::mapToColorLegend( RimRegularLegendConfig::CATEGORY ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -249,9 +250,11 @@ void RimIntersectionResultDefinition::updateLegendRangesTextAndVisibility( const
|
||||
regularLegendConfig()->setMappingMode( RimRegularLegendConfig::LINEAR_CONTINUOUS );
|
||||
}
|
||||
|
||||
if ( regularLegendConfig()->colorRange() == RimRegularLegendConfig::CATEGORY )
|
||||
if ( regularLegendConfig()->colorLegend() ==
|
||||
RimRegularLegendConfig::mapToColorLegend( RimRegularLegendConfig::CATEGORY ) )
|
||||
{
|
||||
regularLegendConfig()->setColorRange( RimRegularLegendConfig::NORMAL );
|
||||
regularLegendConfig()->setColorLegend(
|
||||
RimRegularLegendConfig::mapToColorLegend( RimRegularLegendConfig::NORMAL ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user