mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-21 22:13:25 -06:00
2D Intersection View: Fix crash on project restore.
This commit is contained in:
parent
b4c7eb2c4f
commit
58bf235d5a
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user