Browse Source

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

Fixes https://gitlab.com/kicad/code/kicad/issues/13012
7.0
Jeff Young 3 years ago
parent
commit
c0ab2258a4
  1. 5
      pcbnew/widgets/appearance_controls.cpp

5
pcbnew/widgets/appearance_controls.cpp

@ -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 );

Loading…
Cancel
Save