mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1068 Access mainGrid directly from RimEclipseView
This commit is contained in:
@@ -107,16 +107,13 @@ void RimCellRangeFilterCollection::compoundCellRangeFilter(cvf::CellRangeFilter*
|
||||
RigMainGrid* RimCellRangeFilterCollection::mainGrid() const
|
||||
{
|
||||
RimEclipseView* eclipseView = this->eclipseView();
|
||||
if (eclipseView &&
|
||||
eclipseView->eclipseCase() &&
|
||||
eclipseView->eclipseCase()->reservoirData() &&
|
||||
eclipseView->eclipseCase()->reservoirData()->mainGrid())
|
||||
if (eclipseView && eclipseView->mainGrid())
|
||||
{
|
||||
|
||||
return eclipseView->eclipseCase()->reservoirData()->mainGrid();
|
||||
return eclipseView->mainGrid();
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user