Redraw ratsnest after removing teardrops.

No, I don't know why this is needed.  But after a couple of hours trying
to chase it down, return-on-investment is fading....

Fixes https://gitlab.com/kicad/code/kicad/issues/12420
This commit is contained in:
Jeff Young 2022-10-10 21:05:47 +01:00
parent 1825905011
commit 57a6aeb86a
1 changed files with 5 additions and 2 deletions

View File

@ -218,7 +218,7 @@ void PCB_EDIT_FRAME::OnRunTeardropTool( wxCommandEvent& event )
m_infoBar->RemoveAllButtons();
m_infoBar->AddCloseButton();
m_infoBar->ShowMessageFor( wxString::Format( _( "%d Teardrops created" ), added_count ),
m_infoBar->ShowMessageFor( wxString::Format( _( "%d teardrops created" ), added_count ),
1000, wxICON_EXCLAMATION );
}
@ -230,9 +230,12 @@ void PCB_EDIT_FRAME::OnRemoveTeardropTool( wxCommandEvent& event )
int count = trdm.RemoveTeardrops( &committer, true );
GetCanvas()->RedrawRatsnest();
GetCanvas()->Refresh();
m_infoBar->RemoveAllButtons();
m_infoBar->AddCloseButton();
m_infoBar->ShowMessageFor( wxString::Format( _( "%d Teardrops removed." ), count ),
m_infoBar->ShowMessageFor( wxString::Format( _( "%d teardrops removed." ), count ),
1000, wxICON_EXCLAMATION );
}