From a5fd03df88104cdd347575063d5dcb72d46aaebb Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 24 Oct 2022 20:49:08 +0100 Subject: [PATCH] Don't delete pin out from under selection & move tools. Fixes https://gitlab.com/kicad/code/kicad/issues/12610 (cherry picked from commit 3cb6a80954923f6c2a2eb2a779152d638ac1c955) --- eeschema/tools/symbol_editor_pin_tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/tools/symbol_editor_pin_tool.cpp b/eeschema/tools/symbol_editor_pin_tool.cpp index c28b15a9f5..0360245348 100644 --- a/eeschema/tools/symbol_editor_pin_tool.cpp +++ b/eeschema/tools/symbol_editor_pin_tool.cpp @@ -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;