2D Intersection View: Fix crash on project restore.

This commit is contained in:
Kristian Bendiksen committed 2023-11-17 12:47:47 +01:00
1 parent b4c7eb2c4f
commit 58bf235d5a
1 file changed
+12 -8
@@ -644,17 +644,21 @@ void Rim2dIntersectionView::onUpdateDisplayModelForCurrentTimeStep()
}
}
if ( m_flatIntersectionPartMgr.notNull() && hasResults() )
if ( m_flatIntersectionPartMgr.notNull() )
{
m_flatIntersectionPartMgr->updateCellResultColor( m_currentTimeStep,
m_legendConfig->scalarMapper(),
m_ternaryLegendConfig()->scalarMapper() );
}
else
{
m_flatIntersectionPartMgr->applySingleColorEffect();
if ( hasResults() )
{
m_flatIntersectionPartMgr->updateCellResultColor( m_currentTimeStep,
m_legendConfig->scalarMapper(),
m_ternaryLegendConfig()->scalarMapper() );
}
else
{
m_flatIntersectionPartMgr->applySingleColorEffect();
}
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------