Browse Source

Reverting part of cee973dc04

Iterators are invalidated by vector reallocation.  We need to keep the
count in the loop in order to have a valid position in the vector

Fixes https://gitlab.com/kicad/code/kicad/issues/4073
pull/16/head
Seth Hillbrand 6 years ago
parent
commit
ba8c3a5582
  1. 4
      eeschema/connection_graph.cpp

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

Loading…
Cancel
Save