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:
parent
1825905011
commit
57a6aeb86a
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue