Skip to content

Commit

Permalink
Always use category result when creating legend for formations
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Dec 7, 2023
1 parent 6cb4a2a commit d04d008
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ApplicationLibCode/ProjectDataModel/RimEclipseCellColors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,10 @@ void RimEclipseCellColors::changeLegendConfig( QString resultVarNameOfNewLegend
int caseId = 0;
if ( eclipseCase() ) caseId = eclipseCase()->caseId();

auto newLegend = createLegendForResult( caseId, resultVarNameOfNewLegend, m_useDiscreteLogLevels, hasCategoryResult() );
bool useCategoryLegend = hasCategoryResult();
if ( m_resultType() == RiaDefines::ResultCatType::FORMATION_NAMES ) useCategoryLegend = true;

auto newLegend = createLegendForResult( caseId, resultVarNameOfNewLegend, m_useDiscreteLogLevels, useCategoryLegend );

newLegend->changed.connect( this, &RimEclipseCellColors::onLegendConfigChanged );

Expand Down

0 comments on commit d04d008

Please sign in to comment.