diff --git a/ApplicationCode/ProjectDataModel/RimEclipseCellColors.cpp b/ApplicationCode/ProjectDataModel/RimEclipseCellColors.cpp index 973e1e9165..4234e8f60b 100644 --- a/ApplicationCode/ProjectDataModel/RimEclipseCellColors.cpp +++ b/ApplicationCode/ProjectDataModel/RimEclipseCellColors.cpp @@ -390,9 +390,9 @@ void RimEclipseCellColors::updateLegendData(size_t currentTimeStep) caf::AppEnum fishbone(RimDefines::FISHBONES); caf::AppEnum perforationInterval(RimDefines::PERFORATION_INTERVAL); - categories.push_back(std::make_tuple(wellPath.uiText(), wellPath.index(), cvf::Color3::RED)); - categories.push_back(std::make_tuple(fishbone.uiText(), fishbone.index(), cvf::Color3::DARK_GREEN)); - categories.push_back(std::make_tuple(perforationInterval.uiText(), perforationInterval.index(), cvf::Color3::GREEN)); + categories.push_back(std::make_tuple(wellPath.uiText(), static_cast(wellPath.index()), cvf::Color3::RED)); + categories.push_back(std::make_tuple(fishbone.uiText(), static_cast(fishbone.index()), cvf::Color3::DARK_GREEN)); + categories.push_back(std::make_tuple(perforationInterval.uiText(), static_cast(perforationInterval.index()), cvf::Color3::GREEN)); legendConfig()->setCategoryItems(categories); }