mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 15:36:09 -06:00
(#666) Fixed assert reported in comment
This commit is contained in:
parent
7ebd6514cb
commit
c86bb47fa9
@ -78,13 +78,15 @@ void RivCrossSectionPartMgr::applySingleColorEffect()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RivCrossSectionPartMgr::updateCellResultColor(size_t timeStepIndex)
|
||||
{
|
||||
if (m_crossSectionGenerator.isNull()) return;
|
||||
|
||||
RimEclipseView* eclipseView;
|
||||
m_rimCrossSection->firstAnchestorOrThisOfType(eclipseView);
|
||||
|
||||
if (eclipseView)
|
||||
{
|
||||
RimEclipseCellColors* cellResultColors = eclipseView->cellResult();
|
||||
|
||||
if (m_crossSectionGenerator.isNull()) return;
|
||||
|
||||
CVF_ASSERT(cellResultColors);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user