7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-19 23:21:41 +00:00

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
This commit is contained in:
jean-pierre charras 2024-05-22 17:25:01 +02:00
parent 882c766493
commit 6fc662188f

View File

@ -877,7 +877,10 @@ void GERBVIEW_FRAME::SetActiveLayer( int aLayer, bool doLayerWidgetUpdate )
UpdateXORLayers();
if( doLayerWidgetUpdate )
{
m_LayersManager->SelectLayer( aLayer );
m_LayersManager->OnLayerSelected();
}
UpdateTitleAndInfo();