From a3cbf7da85620b714405305869d5725ea07bb2ae Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Tue, 10 Jan 2017 10:12:14 +0100 Subject: [PATCH] Fixup after merge --- ApplicationCode/ProjectDataModel/RimSimWellFracture.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ApplicationCode/ProjectDataModel/RimSimWellFracture.cpp b/ApplicationCode/ProjectDataModel/RimSimWellFracture.cpp index 8e7e5ead3f..319dc2487f 100644 --- a/ApplicationCode/ProjectDataModel/RimSimWellFracture.cpp +++ b/ApplicationCode/ProjectDataModel/RimSimWellFracture.cpp @@ -20,7 +20,6 @@ #include "RiaApplication.h" -#include "RigCaseData.h" #include "RigMainGrid.h" #include "RigTesselatorTools.h" @@ -125,7 +124,7 @@ cvf::Vec3d RimSimWellFracture::centerPointForFracture() objHandle->firstAncestorOrThisOfType(mainView); if (!mainView) return undef; - const RigMainGrid* mainGrid = mainView->eclipseCase()->reservoirData()->mainGrid(); + const RigMainGrid* mainGrid = mainView->mainGrid(); if (!mainGrid) return undef; size_t gridCellIndex = mainGrid->cellIndexFromIJK(m_i-1, m_j-1, m_k-1); // cellIndexFromIJK uses 0-based indexing