Fix broken conditional check while walking global power connected items
Per the if statement and logic, we want to walk into looking up connections if we are a pin on a chip. IsGlobalPower is a test for it's in a power symbol, so we want it false not true. Fixes https://gitlab.com/kicad/code/kicad/-/issues/16699
This commit is contained in:
parent
d6b39c672e
commit
fb8dc75108
|
@ -3432,7 +3432,7 @@ bool CONNECTION_GRAPH::ercCheckNoConnects( const CONNECTION_SUBGRAPH* aSubgraph
|
|||
// We want to throw unconnected errors for power symbols even if they are connected to other
|
||||
// net items by name, because usually failing to connect them graphically is a mistake
|
||||
if( pin && !has_other_connections
|
||||
&& pin->IsGlobalPower()
|
||||
&& !pin->IsGlobalPower()
|
||||
&& !pin->GetLibPin()->GetParent()->IsPower() )
|
||||
{
|
||||
wxString name = pin->Connection( &sheet )->Name();
|
||||
|
|
Loading…
Reference in New Issue