Nullptr safety.
This commit is contained in:
parent
ed1924b975
commit
2ec3cd91fa
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue