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();