Clear point editor before recombining pad.

Fixes https://gitlab.com/kicad/code/kicad/issues/11731

(cherry picked from commit bd51b33f65)
This commit is contained in:
Jeff Young 2022-06-02 15:55:16 +01:00
parent bbe70e2f67
commit 3a8ad7165b
1 changed files with 5 additions and 1 deletions

View File

@ -697,6 +697,10 @@ void PAD_TOOL::recombinePad( PAD* aPad )
{
int maxError = board()->GetDesignSettings().m_MaxError;
// Don't leave an object in the point editor that might no longer exist after
// recombining the pad.
m_toolMgr->RunAction( PCB_ACTIONS::selectionClear, true );
auto findNext =
[&]( PCB_LAYER_ID aLayer ) -> FP_SHAPE*
{
@ -820,7 +824,7 @@ void PAD_TOOL::recombinePad( PAD* aPad )
commit.Remove( fpShape );
}
commit.Push(_("Recombine pads") );
commit.Push( _( "Recombine pads" ) );
}