APPEARANCE_CONTROLS: fix missing update when toggling a layer view.

Fixes #10977
https://gitlab.com/kicad/code/kicad/issues/10977
This commit is contained in:
jean-pierre charras 2022-02-26 10:36:57 +01:00
parent ff6f398607
commit aadcc43dbb
1 changed files with 1 additions and 0 deletions

View File

@ -1921,6 +1921,7 @@ void APPEARANCE_CONTROLS::onLayerVisibilityToggled( PCB_LAYER_ID aLayer )
LSET visibleLayers = getVisibleLayers(); LSET visibleLayers = getVisibleLayers();
visibleLayers.set( aLayer, !visibleLayers.test( aLayer ) ); visibleLayers.set( aLayer, !visibleLayers.test( aLayer ) );
setVisibleLayers( visibleLayers );
m_frame->GetCanvas()->GetView()->SetLayerVisible( aLayer, visibleLayers.test( aLayer ) ); m_frame->GetCanvas()->GetView()->SetLayerVisible( aLayer, visibleLayers.test( aLayer ) );
syncLayerPresetSelection(); syncLayerPresetSelection();