Don't delete pin out from under selection & move tools.
Fixes https://gitlab.com/kicad/code/kicad/issues/12610
(cherry picked from commit 3cb6a80954
)
This commit is contained in:
parent
2d2912c23d
commit
a5fd03df88
|
@ -244,7 +244,7 @@ bool SYMBOL_EDITOR_PIN_TOOL::PlacePin( LIB_PIN* aPin )
|
|||
|
||||
if( !status )
|
||||
{
|
||||
if( aPin->IsNew() )
|
||||
if( aPin->IsNew() && !aPin->HasFlag( IS_PASTED ) )
|
||||
delete aPin;
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue