Nullptr safety.

This commit is contained in:
Jeff Young 2023-11-20 10:01:38 +00:00
parent ed1924b975
commit 2ec3cd91fa
1 changed files with 1 additions and 1 deletions

View File

@ -368,7 +368,7 @@ void BOARD_ADAPTER::InitSettings( REPORTER* aStatusReporter, REPORTER* aWarningR
m_biuTo3Dunits = RANGE_SCALE_3D / std::max( m_boardSize.x, m_boardSize.y );
// Hack to keep "home" zoom from being too small.
if( !m_board->IsFootprintHolder() )
if( !m_board || !m_board->IsFootprintHolder() )
m_biuTo3Dunits *= 1.6f;
m_boardBodyThickness3DU = DEFAULT_BOARD_THICKNESS * m_biuTo3Dunits;