#1986 Flooded PV: Fix crash. Set statistics calculator to FlowDiag calc

This commit is contained in:
Unknown 2017-10-18 11:58:51 +02:00 committed by Rebecca Cox
parent de60c5a49f
commit 9d5facdbd9

View File

@ -203,7 +203,7 @@ void Rim3dOverlayInfoConfig::defineUiOrdering(QString uiConfigName, caf::PdmUiOr
caf::PdmUiGroup* statGroup = uiOrdering.addNewGroup("Statistics Options");
RimEclipseView * eclipseView = dynamic_cast<RimEclipseView*>(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();