diff --git a/ApplicationCode/ProjectDataModel/Rim3dOverlayInfoConfig.cpp b/ApplicationCode/ProjectDataModel/Rim3dOverlayInfoConfig.cpp index 5b75299033..c836839f82 100644 --- a/ApplicationCode/ProjectDataModel/Rim3dOverlayInfoConfig.cpp +++ b/ApplicationCode/ProjectDataModel/Rim3dOverlayInfoConfig.cpp @@ -203,7 +203,7 @@ void Rim3dOverlayInfoConfig::defineUiOrdering(QString uiConfigName, caf::PdmUiOr caf::PdmUiGroup* statGroup = uiOrdering.addNewGroup("Statistics Options"); RimEclipseView * eclipseView = dynamic_cast(m_viewDef.p()); - if (!eclipseView || eclipseView->cellResult()->resultType() != RiaDefines::FLOW_DIAGNOSTICS) // + if (!eclipseView || !eclipseView->cellResult()->isFlowDiagOrInjectionFlooding()) // { statGroup->add(&m_statisticsTimeRange); } @@ -626,7 +626,7 @@ void Rim3dOverlayInfoConfig::updateVisCellStatsIfNeeded() } else if (eclipseView) { - if (eclipseView->cellResult()->resultType() == RiaDefines::FLOW_DIAGNOSTICS) + if (eclipseView->cellResult()->isFlowDiagOrInjectionFlooding()) { RigFlowDiagResultAddress resAddr = eclipseView->cellResult()->flowDiagResAddress(); RigFlowDiagResults* fldResults = eclipseView->cellResult()->flowDiagSolution()->flowDiagResults();