Update LAYER_PAD_FR when F_Cu colour changes (and same for back).

Fixes https://gitlab.com/kicad/code/kicad/issues/13012
This commit is contained in:
Jeff Young 2022-11-27 18:54:27 +00:00
parent ec9c6a8053
commit c0ab2258a4
1 changed files with 5 additions and 0 deletions

View File

@ -2884,6 +2884,11 @@ void APPEARANCE_CONTROLS::OnColorSwatchChanged( wxCommandEvent& aEvent )
if( IsCopperLayer( layer ) )
view->UpdateLayerColor( ZONE_LAYER_FOR( layer ) );
if( layer == F_Cu )
view->UpdateLayerColor( LAYER_PAD_FR );
else if( layer == B_Cu )
view->UpdateLayerColor( LAYER_PAD_BK );
// Update the bitmap of the layer box
if( m_frame->IsType( FRAME_PCB_EDITOR ) )
static_cast<PCB_EDIT_FRAME*>( m_frame )->ReCreateLayerBox( false );