mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Contour Map: Fix crash when not filtering by visibility.
This commit is contained in:
parent
5588f8f0f9
commit
7148ccdc41
@ -360,7 +360,7 @@ std::vector<RigContourMapCalculator::CellIndexAndResult>
|
|||||||
auto cellGridIdxVisibility = contourMapProjection.getCellVisibility();
|
auto cellGridIdxVisibility = contourMapProjection.getCellVisibility();
|
||||||
for ( size_t globalCellIdx : allCellIndices )
|
for ( size_t globalCellIdx : allCellIndices )
|
||||||
{
|
{
|
||||||
if ( ( *cellGridIdxVisibility )[globalCellIdx] )
|
if ( cellGridIdxVisibility.isNull() || ( *cellGridIdxVisibility )[globalCellIdx] )
|
||||||
{
|
{
|
||||||
kLayerIndexMap[contourMapProjection.kLayer( globalCellIdx )].push_back( globalCellIdx );
|
kLayerIndexMap[contourMapProjection.kLayer( globalCellIdx )].push_back( globalCellIdx );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user