mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-01 16:43:03 -06:00
Contour Map: Fix crash when not filtering by visibility.
This commit is contained in:
1 parent
5588f8f0f9
commit
7148ccdc41
1 file changed
+1
-1
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user