From 0e00ca31ea3dbc155b2efcd215a8ff417b6100e8 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 1795ccb4c3..e54879c8d5 100644 --- a/pcbnew/widgets/appearance_controls.cpp +++ b/pcbnew/widgets/appearance_controls.cpp @@ -1922,6 +1922,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();