mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 23:46:00 -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)
|
void RivCrossSectionPartMgr::updateCellResultColor(size_t timeStepIndex)
|
||||||
{
|
{
|
||||||
|
if (m_crossSectionGenerator.isNull()) return;
|
||||||
|
|
||||||
RimEclipseView* eclipseView;
|
RimEclipseView* eclipseView;
|
||||||
m_rimCrossSection->firstAnchestorOrThisOfType(eclipseView);
|
m_rimCrossSection->firstAnchestorOrThisOfType(eclipseView);
|
||||||
|
|
||||||
if (eclipseView)
|
if (eclipseView)
|
||||||
{
|
{
|
||||||
RimEclipseCellColors* cellResultColors = eclipseView->cellResult();
|
RimEclipseCellColors* cellResultColors = eclipseView->cellResult();
|
||||||
|
|
||||||
if (m_crossSectionGenerator.isNull()) return;
|
|
||||||
|
|
||||||
CVF_ASSERT(cellResultColors);
|
CVF_ASSERT(cellResultColors);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user