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:
parent
ec9c6a8053
commit
c0ab2258a4
|
@ -2884,6 +2884,11 @@ void APPEARANCE_CONTROLS::OnColorSwatchChanged( wxCommandEvent& aEvent )
|
||||||
if( IsCopperLayer( layer ) )
|
if( IsCopperLayer( layer ) )
|
||||||
view->UpdateLayerColor( ZONE_LAYER_FOR( 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
|
// Update the bitmap of the layer box
|
||||||
if( m_frame->IsType( FRAME_PCB_EDITOR ) )
|
if( m_frame->IsType( FRAME_PCB_EDITOR ) )
|
||||||
static_cast<PCB_EDIT_FRAME*>( m_frame )->ReCreateLayerBox( false );
|
static_cast<PCB_EDIT_FRAME*>( m_frame )->ReCreateLayerBox( false );
|
||||||
|
|
Loading…
Reference in New Issue