Skip to content

Commit

Permalink
2D Intersection View: Fix crash on project restore.
Browse files Browse the repository at this point in the history
  • Loading branch information
kriben committed Nov 17, 2023
1 parent b4c7eb2 commit 58bf235
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions ApplicationLibCode/ProjectDataModel/Rim2dIntersectionView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -644,17 +644,21 @@ void Rim2dIntersectionView::onUpdateDisplayModelForCurrentTimeStep()
}
}

if ( m_flatIntersectionPartMgr.notNull() && hasResults() )
{
m_flatIntersectionPartMgr->updateCellResultColor( m_currentTimeStep,
m_legendConfig->scalarMapper(),
m_ternaryLegendConfig()->scalarMapper() );
}
else
if ( m_flatIntersectionPartMgr.notNull() )
{
m_flatIntersectionPartMgr->applySingleColorEffect();
if ( hasResults() )
{
m_flatIntersectionPartMgr->updateCellResultColor( m_currentTimeStep,
m_legendConfig->scalarMapper(),
m_ternaryLegendConfig()->scalarMapper() );
}
else
{
m_flatIntersectionPartMgr->applySingleColorEffect();
}
}
}

//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 58bf235

Please sign in to comment.