Statistics : Do not assert on owner case being RimEclipseResultCase

This commit is contained in:
Magne Sjaastad
2017-12-06 08:10:46 +01:00
parent 9d83299da9
commit 8e3f02879c

View File

@@ -557,9 +557,12 @@ void RimSimWellInViewCollection::defineUiOrdering(QString uiConfigName, caf::Pdm
advancedGroup->add(&wellCellTransparencyLevel);
advancedGroup->add(&wellHeadPosition);
RimEclipseResultCase* ownerCase;
firstAncestorOrThisOfTypeAsserted(ownerCase);
m_showWellCommunicationLines.uiCapability()->setUiHidden(!ownerCase->flowDiagSolverInterface());
RimEclipseResultCase* ownerCase = nullptr;
firstAncestorOrThisOfType(ownerCase);
if (ownerCase)
{
m_showWellCommunicationLines.uiCapability()->setUiHidden(!ownerCase->flowDiagSolverInterface());
}
m_showWellCellFence.uiCapability()->setUiReadOnly(!showWellCells());
wellCellFenceType.uiCapability()->setUiReadOnly(!showWellCells());