Refresh net annotations on tracks, pads, etc. when name changes.

Fixes https://gitlab.com/kicad/code/kicad/issues/5466
This commit is contained in:
Jeff Young 2020-09-03 14:36:20 +01:00
parent 8609180406
commit eccb1e612e
1 changed files with 6 additions and 0 deletions

View File

@ -930,6 +930,12 @@ void DIALOG_SELECT_NET_FROM_LIST::onRenameNet( wxCommandEvent& aEvent )
buildNetsList();
m_netsList->Refresh();
// Currently only tracks and pads have netname annotations and need to be redrawn,
// but zones are likely to follow. Since we don't have a way to ask what is current,
// just refresh all items.
m_frame->GetCanvas()->GetView()->UpdateAllItems( KIGFX::REPAINT );
m_frame->GetCanvas()->Refresh();
}
}