Fix edge case crash when processing invisible power pins

This commit is contained in:
Jon Evans 2019-04-01 19:32:52 -04:00
parent 428e7a900b
commit 8b30cd4389
2 changed files with 2 additions and 2 deletions

View File

@ -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; auto parent = subgraph->m_driver_connection;
pc->Connection( sheet )->Clone( *parent ); pc->Connection( sheet )->Clone( *parent );

View File

@ -67,7 +67,7 @@ public:
CONNECTION_SUBGRAPH( SCH_EDIT_FRAME* aFrame ) : CONNECTION_SUBGRAPH( SCH_EDIT_FRAME* aFrame ) :
m_dirty( false ), m_code( -1 ), m_multiple_power_ports( false ), m_dirty( false ), m_code( -1 ), m_multiple_power_ports( false ),
m_strong_driver( false ), m_no_connect( nullptr ), m_driver( nullptr ), 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. * Determines which potential driver should drive the subgraph.