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
@@ -250,7 +250,7 @@ void RimEclipseCellColors::updateLegendCategorySettings()
|
||||
if ( this->hasCategoryResult() )
|
||||
{
|
||||
legendConfig()->setMappingMode( RimRegularLegendConfig::CATEGORY_INTEGER );
|
||||
legendConfig()->setColorRange( RimRegularLegendConfig::CATEGORY );
|
||||
legendConfig()->setColorLegend( RimRegularLegendConfig::mapToColorLegend( RimRegularLegendConfig::CATEGORY ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -259,9 +259,9 @@ void RimEclipseCellColors::updateLegendCategorySettings()
|
||||
legendConfig()->setMappingMode( RimRegularLegendConfig::LINEAR_CONTINUOUS );
|
||||
}
|
||||
|
||||
if ( legendConfig()->colorRange() == RimRegularLegendConfig::CATEGORY )
|
||||
if ( legendConfig()->colorLegend() == RimRegularLegendConfig::mapToColorLegend( RimRegularLegendConfig::CATEGORY ) )
|
||||
{
|
||||
legendConfig()->setColorRange( RimRegularLegendConfig::NORMAL );
|
||||
legendConfig()->setColorLegend( RimRegularLegendConfig::mapToColorLegend( RimRegularLegendConfig::NORMAL ) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user