diff --git a/eeschema/connection_graph.cpp b/eeschema/connection_graph.cpp index 578f218459..71db043502 100644 --- a/eeschema/connection_graph.cpp +++ b/eeschema/connection_graph.cpp @@ -1002,7 +1002,7 @@ void CONNECTION_GRAPH::buildConnectionGraph() { } - if( subgraph && subgraph->m_driver ) + if( subgraph && subgraph->m_driver_connection ) { auto parent = subgraph->m_driver_connection; pc->Connection( sheet )->Clone( *parent ); diff --git a/eeschema/connection_graph.h b/eeschema/connection_graph.h index d2fab3b4ee..fcf903ec59 100644 --- a/eeschema/connection_graph.h +++ b/eeschema/connection_graph.h @@ -67,7 +67,7 @@ public: CONNECTION_SUBGRAPH( SCH_EDIT_FRAME* aFrame ) : m_dirty( false ), m_code( -1 ), m_multiple_power_ports( false ), m_strong_driver( false ), m_no_connect( nullptr ), m_driver( nullptr ), - m_frame( aFrame ) + m_frame( aFrame ), m_driver_connection( nullptr ) {} /** * Determines which potential driver should drive the subgraph.