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:
parent
bbe70e2f67
commit
3a8ad7165b
|
@ -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" ) );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue