2D Intersection View: Fix crash on project restore.

This commit is contained in:
Kristian Bendiksen 2023-11-17 10:19:54 +01:00
parent b4c7eb2c4f
commit 58bf235d5a

View File

@ -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();
}
}
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------