mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 17:02:13 -05:00
2D Intersection View: Fix crash on project restore.
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user