Don't delete pin out from under selection & move tools.

Fixes https://gitlab.com/kicad/code/kicad/issues/12610
This commit is contained in:
Jeff Young 2022-10-24 20:49:08 +01:00
parent fa2a36b74e
commit 3cb6a80954
1 changed files with 1 additions and 1 deletions

View File

@ -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;