mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#992 Fixed invalid access of nullpointer for property filtered geometry
This commit is contained in:
@@ -767,7 +767,16 @@ void RimEclipseView::updateStaticCellColors(RivCellSetEnum geometryType)
|
||||
case RANGE_FILTERED_INACTIVE: color = cvf::Color4f(cvf::Color3::LIGHT_GRAY); break;
|
||||
}
|
||||
|
||||
m_reservoirGridPartManager->updateCellColor(geometryType, color);
|
||||
if (geometryType == PROPERTY_FILTERED || geometryType == PROPERTY_FILTERED_WELL_CELLS)
|
||||
{
|
||||
// Always use current time step when updating color of property geometry
|
||||
m_reservoirGridPartManager->updateCellColor(geometryType, m_currentTimeStep, color);
|
||||
}
|
||||
else
|
||||
{
|
||||
// Use static timestep (timestep 0) for geometry with no change between time steps
|
||||
m_reservoirGridPartManager->updateCellColor(geometryType, 0, color);
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user