From 4d332ee98e52a692897897dbfc58c811b84cf1c1 Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Tue, 26 Mar 2019 15:30:50 +0100 Subject: [PATCH] Fix inverted check --- .../GridCrossPlots/CellFilters/RimPlotCellPropertyFilter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;