From 8e9b457887b191856ff94c206347606a7e9226a1 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Thu, 11 Feb 2021 17:18:32 -0500 Subject: [PATCH] Make sure sheet pin connections get reset every time Fixes https://gitlab.com/kicad/code/kicad/-/issues/7499 --- eeschema/connection_graph.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/eeschema/connection_graph.cpp b/eeschema/connection_graph.cpp index 3824aa5ff9..4f4186d157 100644 --- a/eeschema/connection_graph.cpp +++ b/eeschema/connection_graph.cpp @@ -505,11 +505,9 @@ void CONNECTION_GRAPH::updateItemConnectivity( const SCH_SHEET_PATH& aSheet, { for( SCH_SHEET_PIN* pin : static_cast( 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 );