From 57a6aeb86a57f642680eefb4bd671a005639fa4e Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 10 Oct 2022 21:05:47 +0100 Subject: [PATCH] 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 --- pcbnew/teardrop/dialog_teardrop.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pcbnew/teardrop/dialog_teardrop.cpp b/pcbnew/teardrop/dialog_teardrop.cpp index 50ee3ad0ad..e75d58bd91 100644 --- a/pcbnew/teardrop/dialog_teardrop.cpp +++ b/pcbnew/teardrop/dialog_teardrop.cpp @@ -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 ); }