Contour Map: Fix crash when not filtering by visibility.

This commit is contained in:
Kristian Bendiksen 2024-11-13 11:22:47 +01:00
parent 5588f8f0f9
commit 7148ccdc41

View File

@ -360,7 +360,7 @@ std::vector<RigContourMapCalculator::CellIndexAndResult>
auto cellGridIdxVisibility = contourMapProjection.getCellVisibility();
for ( size_t globalCellIdx : allCellIndices )
{
if ( ( *cellGridIdxVisibility )[globalCellIdx] )
if ( cellGridIdxVisibility.isNull() || ( *cellGridIdxVisibility )[globalCellIdx] )
{
kLayerIndexMap[contourMapProjection.kLayer( globalCellIdx )].push_back( globalCellIdx );
}