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
1 changed files with 3 additions and 0 deletions

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();