Add pin reference to PINLABEL for use when generating ERC marker.

Fixes https://gitlab.com/kicad/code/kicad/issues/4208
This commit is contained in:
Jeff Young 2020-04-16 19:52:27 +01:00
parent 37023da56f
commit 96db1c7b1e
1 changed files with 1 additions and 1 deletions

View File

@ -1668,7 +1668,7 @@ void SCH_COMPONENT::GetNetListItem( NETLIST_OBJECT_LIST& aNetListItems,
// There is an associated PIN_LABEL.
item = new NETLIST_OBJECT();
item->m_SheetPathInclude = *aSheetPath;
item->m_Comp = NULL;
item->m_Comp = m_pins[ m_pinMap.at( pin ) ].get();;
item->m_SheetPath = *aSheetPath;
item->m_Type = NETLIST_ITEM::PINLABEL;
item->m_Label = pin->GetName();