diff --git a/eeschema/tools/sch_edit_tool.cpp b/eeschema/tools/sch_edit_tool.cpp index 3923dec6c1..0ddebf3066 100644 --- a/eeschema/tools/sch_edit_tool.cpp +++ b/eeschema/tools/sch_edit_tool.cpp @@ -196,9 +196,9 @@ bool SCH_EDIT_TOOL::Init() { const std::deque items = aSel.GetItems(); if( !std::all_of( items.begin(), items.end(), - [&]( const EDA_ITEM* item ) + [&]( const EDA_ITEM* selItem ) { - const SCH_LINE* line = dynamic_cast( item ); + const SCH_LINE* line = dynamic_cast( selItem ); if ( line == nullptr ) { wxLogWarning(