From cac86077073295e76e5e608e2a19fa79322084c4 Mon Sep 17 00:00:00 2001 From: Kristian Bendiksen Date: Thu, 2 Jul 2020 14:00:43 +0200 Subject: [PATCH] Use defined string for facies colors legend name. --- .../ProjectDataModel/Completions/RimFractureModel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ApplicationCode/ProjectDataModel/Completions/RimFractureModel.cpp b/ApplicationCode/ProjectDataModel/Completions/RimFractureModel.cpp index 403299b2ce..d4557dd3e0 100644 --- a/ApplicationCode/ProjectDataModel/Completions/RimFractureModel.cpp +++ b/ApplicationCode/ProjectDataModel/Completions/RimFractureModel.cpp @@ -21,6 +21,7 @@ #include "RiaColorTables.h" #include "RiaCompletionTypeCalculationScheduler.h" #include "RiaEclipseUnitTools.h" +#include "RiaFractureDefines.h" #include "RiaLogging.h" #include "Riu3DMainWindowTools.h" @@ -219,7 +220,8 @@ QList RimFractureModel::calculateValueOptions( const caf } else if ( fieldNeedingOptions == &m_overburdenFacies || fieldNeedingOptions == &m_underburdenFacies ) { - RimColorLegend* faciesColors = RimProject::current()->colorLegendCollection()->findByName( "Facies colors" ); + RimColorLegend* faciesColors = + RimProject::current()->colorLegendCollection()->findByName( RiaDefines::faciesColorLegendName() ); if ( faciesColors ) { for ( RimColorLegendItem* item : faciesColors->colorLegendItems() )