Refresh zone layers when copper layers change opacity.
Fixes https://gitlab.com/kicad/code/kicad/issues/7468
This commit is contained in:
parent
618e824b0f
commit
a49a6c2f52
|
@ -356,6 +356,10 @@ int PCB_CONTROL::LayerAlphaInc( const TOOL_EVENT& aEvent )
|
||||||
|
|
||||||
KIGFX::VIEW* view = m_frame->GetCanvas()->GetView();
|
KIGFX::VIEW* view = m_frame->GetCanvas()->GetView();
|
||||||
view->UpdateLayerColor( currentLayer );
|
view->UpdateLayerColor( currentLayer );
|
||||||
|
view->UpdateLayerColor( GetNetnameLayer( currentLayer ) );
|
||||||
|
|
||||||
|
if( IsCopperLayer( currentLayer ) )
|
||||||
|
view->UpdateLayerColor( ZONE_LAYER_FOR( currentLayer ) );
|
||||||
|
|
||||||
wxUpdateUIEvent dummy;
|
wxUpdateUIEvent dummy;
|
||||||
static_cast<PCB_EDIT_FRAME*>( m_frame )->OnUpdateLayerAlpha( dummy );
|
static_cast<PCB_EDIT_FRAME*>( m_frame )->OnUpdateLayerAlpha( dummy );
|
||||||
|
@ -382,6 +386,10 @@ int PCB_CONTROL::LayerAlphaDec( const TOOL_EVENT& aEvent )
|
||||||
|
|
||||||
KIGFX::VIEW* view = m_frame->GetCanvas()->GetView();
|
KIGFX::VIEW* view = m_frame->GetCanvas()->GetView();
|
||||||
view->UpdateLayerColor( currentLayer );
|
view->UpdateLayerColor( currentLayer );
|
||||||
|
view->UpdateLayerColor( GetNetnameLayer( currentLayer ) );
|
||||||
|
|
||||||
|
if( IsCopperLayer( currentLayer ) )
|
||||||
|
view->UpdateLayerColor( ZONE_LAYER_FOR( currentLayer ) );
|
||||||
|
|
||||||
wxUpdateUIEvent dummy;
|
wxUpdateUIEvent dummy;
|
||||||
static_cast<PCB_BASE_FRAME*>( m_frame )->OnUpdateLayerAlpha( dummy );
|
static_cast<PCB_BASE_FRAME*>( m_frame )->OnUpdateLayerAlpha( dummy );
|
||||||
|
|
|
@ -2412,7 +2412,7 @@ void APPEARANCE_CONTROLS::OnColorSwatchChanged( wxCommandEvent& aEvent )
|
||||||
view->UpdateLayerColor( layer );
|
view->UpdateLayerColor( layer );
|
||||||
view->UpdateLayerColor( GetNetnameLayer( layer ) );
|
view->UpdateLayerColor( GetNetnameLayer( layer ) );
|
||||||
|
|
||||||
if( layer < PCB_LAYER_ID_COUNT )
|
if( IsCopperLayer( layer ) )
|
||||||
view->UpdateLayerColor( ZONE_LAYER_FOR( layer ) );
|
view->UpdateLayerColor( ZONE_LAYER_FOR( layer ) );
|
||||||
|
|
||||||
// Update the bitmap of the layer box
|
// Update the bitmap of the layer box
|
||||||
|
|
Loading…
Reference in New Issue