From 88115e1dd2da0c18bc95a56d8e735e3123531dfc Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Wed, 22 May 2024 17:25:01 +0200 Subject: [PATCH] Gerbview: fix a minor issue. When the option "always hide all layers but active" is set, the active layer changed using hotkeys or Toolbar layer selector did not update the visible selection. Fixes https://gitlab.com/kicad/code/kicad/-/issues/18059 --- gerbview/gerbview_frame.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gerbview/gerbview_frame.cpp b/gerbview/gerbview_frame.cpp index 4f2a052e94..2c0d5c9435 100644 --- a/gerbview/gerbview_frame.cpp +++ b/gerbview/gerbview_frame.cpp @@ -877,7 +877,10 @@ void GERBVIEW_FRAME::SetActiveLayer( int aLayer, bool doLayerWidgetUpdate ) UpdateXORLayers(); if( doLayerWidgetUpdate ) + { m_LayersManager->SelectLayer( aLayer ); + m_LayersManager->OnLayerSelected(); + } UpdateTitleAndInfo();