Fix inverted check

This commit is contained in:
Magne Sjaastad 2019-03-26 15:30:50 +01:00
parent d0ee914d5c
commit 4d332ee98e

View File

@ -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<double>& cellResultValues =
cellResultsData->cellScalarResults(resDef->eclipseResultAddress(), timeStepIndex);
if (cellResultValues.empty()) return;