Browse Source

Fix crash in connection graph when loading a version 8.0 schematic.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20777

(cherry picked from commit c4f9710f98)
pull/18/head
Wayne Stambaugh 6 months ago
parent
commit
31374906af
  1. 9
      eeschema/connection_graph.cpp

9
eeschema/connection_graph.cpp

@ -2315,7 +2315,7 @@ void CONNECTION_GRAPH::buildConnectionGraph( std::function<void( SCH_ITEM* )>* a
subgraph->m_code, conn->Name() );
// Should we skip everything after this if this is not a net?
wxASSERT( conn->IsNet() );
wxCHECK2( conn->IsNet(), continue );
for( const auto& ii : subgraph->m_bus_parents )
{
@ -2772,8 +2772,11 @@ void CONNECTION_GRAPH::propagateToNeighbors( CONNECTION_SUBGRAPH* aSubgraph, boo
continue;
}
auto neighbor_conn = neighbor->m_driver_connection;
auto neighbor_name = neighbor_conn->Name();
SCH_CONNECTION* neighbor_conn = neighbor->m_driver_connection;
wxCHECK2( neighbor_conn, continue );
wxString neighbor_name = neighbor_conn->Name();
// Matching name: no update needed
if( neighbor_name == member->Name() )

Loading…
Cancel
Save