From 9d5facdbd99b318f7a199becc940d203ff3ec5c1 Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 18 Oct 2017 11:58:51 +0200 Subject: [PATCH] #1986 Flooded PV: Fix crash. Set statistics calculator to FlowDiag calc --- ApplicationCode/ProjectDataModel/Rim3dOverlayInfoConfig.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();