diff --git a/ApplicationCode/ProjectDataModel/GridCrossPlots/CellFilters/RimPlotCellPropertyFilter.cpp b/ApplicationCode/ProjectDataModel/GridCrossPlots/CellFilters/RimPlotCellPropertyFilter.cpp index a83f28daca..a1e0aa1deb 100644 --- a/ApplicationCode/ProjectDataModel/GridCrossPlots/CellFilters/RimPlotCellPropertyFilter.cpp +++ b/ApplicationCode/ProjectDataModel/GridCrossPlots/CellFilters/RimPlotCellPropertyFilter.cpp @@ -139,11 +139,11 @@ void RimPlotCellPropertyFilter::updateCellVisibilityFromFilter(size_t timeStepIn resDef->loadResult(); - if (resDef->currentGridCellResults()->hasResultEntry(resDef->eclipseResultAddress())) return; - RigCaseCellResultsData* cellResultsData = resDef->currentGridCellResults(); if (!cellResultsData) return; + if (!resDef->currentGridCellResults()->hasResultEntry(resDef->eclipseResultAddress())) return; + const std::vector& cellResultValues = cellResultsData->cellScalarResults(resDef->eclipseResultAddress(), timeStepIndex); if (cellResultValues.empty()) return;