Make sure sheet pin connections get reset every time

Fixes https://gitlab.com/kicad/code/kicad/-/issues/7499
This commit is contained in:
Jon Evans 2021-02-11 17:18:32 -05:00
parent af7e4c6ca0
commit 8e9b457887
1 changed files with 1 additions and 3 deletions

View File

@ -505,11 +505,9 @@ void CONNECTION_GRAPH::updateItemConnectivity( const SCH_SHEET_PATH& aSheet,
{
for( SCH_SHEET_PIN* pin : static_cast<SCH_SHEET*>( item )->GetPins() )
{
if( !pin->Connection( &aSheet ) )
pin->InitializeConnection( aSheet, this );
pin->InitializeConnection( aSheet, this );
pin->ConnectedItems( aSheet ).clear();
pin->Connection( &aSheet )->Reset();
connection_map[ pin->GetTextPos() ].push_back( pin );
m_items.emplace_back( pin );