From bdb429ea5e86e5079212b2b894f6f16f6d1503a1 Mon Sep 17 00:00:00 2001
From: Oliver <oliver.henry.walters@gmail.com>
Date: Mon, 6 Feb 2017 21:35:02 +1100
Subject: [PATCH] Invisible pins are no longer connected during netlist
 creation

- Ignore invisible pins (except for power pins) for netlist
- Ignore invisible pins when connecting wires
---
 eeschema/sch_component.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/eeschema/sch_component.cpp b/eeschema/sch_component.cpp
index f7b6738..12f18ee 100644
--- a/eeschema/sch_component.cpp
+++ b/eeschema/sch_component.cpp
@@ -1639,6 +1639,9 @@ void SCH_COMPONENT::GetEndPoints( std::vector <DANGLING_END_ITEM>& aItemList )
         {
             wxASSERT( pin->Type() == LIB_PIN_T );
 
+            if( !pin->IsVisible() )
+                continue;
+
             if( pin->GetUnit() && m_unit && ( m_unit != pin->GetUnit() ) )
                 continue;
 
@@ -1892,6 +1895,9 @@ void SCH_COMPONENT::GetNetListItem( NETLIST_OBJECT_LIST& aNetListItems,
             if( pin->GetConvert() && ( pin->GetConvert() != GetConvert() ) )
                 continue;
 
+            if( !pin->IsPowerConnection() && !pin->IsVisible() )
+                continue;
+
             wxPoint pos = GetTransform().TransformCoordinate( pin->GetPosition() ) + m_Pos;
 
             NETLIST_OBJECT* item = new NETLIST_OBJECT();
-- 
1.9.5.msysgit.0

