diff --git a/eeschema/connection_graph.cpp b/eeschema/connection_graph.cpp index f8136a4dcd..373609125c 100644 --- a/eeschema/connection_graph.cpp +++ b/eeschema/connection_graph.cpp @@ -1624,8 +1624,10 @@ void CONNECTION_GRAPH::propagateToNeighbors( CONNECTION_SUBGRAPH* aSubgraph ) visit( aSubgraph ); - for( CONNECTION_SUBGRAPH* child : search_list ) + for( unsigned i = 0; i < search_list.size(); i++ ) { + auto child = search_list[i]; + visited.insert( child ); visit( child );