From 51e6846ca56cdd5b96b2afd99819ce8e0c50e3c9 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 8 Jan 2021 20:42:23 +0000 Subject: [PATCH] Don't edit fields when more than one is selected. Fixes https://gitlab.com/kicad/code/kicad/issues/7005 --- eeschema/tools/sch_edit_tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eeschema/tools/sch_edit_tool.cpp b/eeschema/tools/sch_edit_tool.cpp index 26b060565f..b5250d4ca0 100644 --- a/eeschema/tools/sch_edit_tool.cpp +++ b/eeschema/tools/sch_edit_tool.cpp @@ -1193,7 +1193,7 @@ int SCH_EDIT_TOOL::EditField( const TOOL_EVENT& aEvent ) EE_SELECTION& selection = m_selectionTool->RequestSelection( filter ); - if( selection.Empty() ) + if( selection.Size() != 1 ) return 0; SCH_ITEM* item = (SCH_ITEM*) selection.Front();