Flow: Avoid crash when picking cells with flow Diag results

This commit is contained in:
Jacob Støren 2016-12-20 14:42:46 +01:00
parent ed5e7b94ad
commit 4b64de258e

View File

@ -103,7 +103,11 @@ void RiuSelectionChangedHandler::addCurveFromSelectionItem(const RiuEclipseSelec
{
RimEclipseView* eclipseView = eclipseSelectionItem->m_view.p();
if (eclipseView->cellResult()->hasDynamicResult() &&
if (eclipseView->cellResult()->resultType() == RimDefines::FLOW_DIAGNOSTICS)
{
// Todo
}
else if (eclipseView->cellResult()->hasDynamicResult() &&
eclipseView->eclipseCase() &&
eclipseView->eclipseCase()->reservoirData())
{