Clear point editor before recombining pad.
Fixes https://gitlab.com/kicad/code/kicad/issues/11731
This commit is contained in:
parent
de12c63de6
commit
bd51b33f65
|
@ -699,6 +699,10 @@ void PAD_TOOL::recombinePad( PAD* aPad )
|
||||||
{
|
{
|
||||||
int maxError = board()->GetDesignSettings().m_MaxError;
|
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 =
|
auto findNext =
|
||||||
[&]( PCB_LAYER_ID aLayer ) -> FP_SHAPE*
|
[&]( PCB_LAYER_ID aLayer ) -> FP_SHAPE*
|
||||||
{
|
{
|
||||||
|
@ -822,7 +826,7 @@ void PAD_TOOL::recombinePad( PAD* aPad )
|
||||||
commit.Remove( fpShape );
|
commit.Remove( fpShape );
|
||||||
}
|
}
|
||||||
|
|
||||||
commit.Push(_("Recombine pads") );
|
commit.Push( _( "Recombine pads" ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue