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

Pcbnew, zone manager dialog: fix Update Displayed Zones button not working

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19494
This commit is contained in:
jean-pierre charras 2025-01-05 17:35:54 +01:00
parent d0033f91ce
commit 45c7dfa857

View File

@ -407,8 +407,11 @@ void DIALOG_ZONE_MANAGER::OnUpdateDisplayedZonesClick( wxCommandEvent& aEvent )
gal->GetView()->UpdateItems();
gal->Refresh();
int layer = gal->GetLayer();
gal->ActivateSelectedZone(
m_modelZoneOverviewTable->GetZone( m_viewZonesOverview->GetSelection() ) );
// rebuild the currently displayed zone and refresh display
ZONE* curr_zone = gal->GetZone();
gal->ActivateSelectedZone( curr_zone );
gal->OnLayerSelected( layer );
}