#5874 Remove direct accessor to obsoleted RimRegularLegendConfig::colorRange field.

This commit is contained in:
Kristian Bendiksen authored and Magne Sjaastad committed 2020-05-24 17:26:51 +02:00
1 parent f578f1f954
commit 0b9577df71
11 files changed
+48 -34

No files matched your search

@@ -86,7 +86,7 @@ void RimGeoMechCellColors::updateLegendCategorySettings()
if ( this->hasCategoryResult() )
{
legendConfig->setMappingMode( RimRegularLegendConfig::CATEGORY_INTEGER );
legendConfig->setColorRange( RimRegularLegendConfig::CATEGORY );
legendConfig->setColorLegend( RimRegularLegendConfig::mapToColorLegend( RimRegularLegendConfig::CATEGORY ) );
}
else
{
@@ -95,9 +95,9 @@ void RimGeoMechCellColors::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 ) );
}
}
}