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:
Jeff Young 2022-10-24 20:49:08 +01:00
parent 2d2912c23d
commit a5fd03df88
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( !status )
{ {
if( aPin->IsNew() ) if( aPin->IsNew() && !aPin->HasFlag( IS_PASTED ) )
delete aPin; delete aPin;
return false; return false;