diff --git a/eeschema/tools/ee_selection_tool.cpp b/eeschema/tools/ee_selection_tool.cpp index 0ce878014c..0244bf26b7 100644 --- a/eeschema/tools/ee_selection_tool.cpp +++ b/eeschema/tools/ee_selection_tool.cpp @@ -478,7 +478,7 @@ int EE_SELECTION_TOOL::Main( const TOOL_EVENT& aEvent ) { EE_SELECTION saved_selection = m_selection; - for( const auto& item : m_selection ) + for( const auto& item : saved_selection ) RemoveItemFromSel( item, true ); SelectPoint( evt->Position(), EE_COLLECTOR::AllItems, nullptr,