Sync via/pad flashing for null boards

Pads return true by default and so should vias
This commit is contained in:
Seth Hillbrand 2022-04-12 11:37:18 -07:00
parent 110663d214
commit bfa1661edf
1 changed files with 1 additions and 1 deletions

View File

@ -499,7 +499,7 @@ bool PCB_VIA::FlashLayer( int aLayer ) const
const BOARD* board = GetBoard(); const BOARD* board = GetBoard();
if( !board ) if( !board )
return false; return true;
if( !IsOnLayer( static_cast<PCB_LAYER_ID>( aLayer ) ) ) if( !IsOnLayer( static_cast<PCB_LAYER_ID>( aLayer ) ) )
return false; return false;