mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
2D Intersection View: Fix crash on project restore.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user