From aadcc43dbbada10ec9df198e8d18deb5a81b1bdc Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 26 Feb 2022 10:36:57 +0100 Subject: [PATCH] APPEARANCE_CONTROLS: fix missing update when toggling a layer view. Fixes #10977 https://gitlab.com/kicad/code/kicad/issues/10977 --- pcbnew/widgets/appearance_controls.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/pcbnew/widgets/appearance_controls.cpp b/pcbnew/widgets/appearance_controls.cpp index 658e6e2fae..e59cb846c8 100644 --- a/pcbnew/widgets/appearance_controls.cpp +++ b/pcbnew/widgets/appearance_controls.cpp @@ -1921,6 +1921,7 @@ void APPEARANCE_CONTROLS::onLayerVisibilityToggled( PCB_LAYER_ID aLayer ) LSET visibleLayers = getVisibleLayers(); visibleLayers.set( aLayer, !visibleLayers.test( aLayer ) ); + setVisibleLayers( visibleLayers ); m_frame->GetCanvas()->GetView()->SetLayerVisible( aLayer, visibleLayers.test( aLayer ) ); syncLayerPresetSelection();