Fix assert in Show Contibuting Wells due to wrongful use of firstAnchestorOf

This commit is contained in:
Jacob Støren
2017-04-27 09:51:31 +02:00
parent 7ff27a1938
commit ff1b8c6db8
3 changed files with 4 additions and 5 deletions

View File

@@ -54,8 +54,7 @@ void RicShowContributingWellsFromPlotFeature::onActionTriggered(bool isChecked)
int timeStep = wellAllocationPlot->timeStep();
QString wellName = wellAllocationPlot->wellName();
RimEclipseResultCase* wellAllocationResultCase = nullptr;
wellAllocationPlot->flowDiagSolution()->firstAncestorOrThisOfTypeAsserted(wellAllocationResultCase);
RimEclipseResultCase* wellAllocationResultCase = wellAllocationPlot->rimCase();
RicShowContributingWellsFeatureImpl::maniuplateSelectedView(wellAllocationResultCase, wellName, timeStep);
}