7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 00:21:25 +00:00

Fix ERC error missing on stacked pins

Stacked pins are not connected, so they should be flagged as such.  This
checks for stacked pins that are not part of different symbols

Fixes https://gitlab.com/kicad/code/kicad/issues/11926

(cherry picked from commit 90ef84b958)
This commit is contained in:
Seth Hillbrand 2022-06-28 15:02:36 -07:00
parent f1a054e6af
commit 6a8519dfd9

View File

@ -2666,7 +2666,8 @@ bool CONNECTION_GRAPH::ercCheckNoConnects( const CONNECTION_SUBGRAPH* aSubgraph
{
case SCH_PIN_T:
{
if( !pins.empty() )
// Only consider a connection to be between pins on different symbols
if( !pins.empty() && ( item->GetParent() != pins.front()->GetParent() ) )
has_other_connections = true;
pins.emplace_back( static_cast<SCH_PIN*>( item ) );