Make sure sheet pin connections get reset every time
Fixes https://gitlab.com/kicad/code/kicad/-/issues/7499
This commit is contained in:
parent
af7e4c6ca0
commit
8e9b457887
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue