diff --git a/eeschema/netlist_object.h b/eeschema/netlist_object.h index 77a6e05ac5..ed4c6ae123 100644 --- a/eeschema/netlist_object.h +++ b/eeschema/netlist_object.h @@ -93,7 +93,7 @@ class NETLIST_OBJECT { public: NETLIST_ITEM m_Type; /* Type of item (see NETLIST_ITEM_T enum) */ - EDA_ITEM* m_Comp; /* Pointer to the library item that + EDA_ITEM* m_Comp; /* Pointer to the item that * created this net object (the parent) */ SCH_ITEM* m_Link; /* For SCH_SHEET_PIN: diff --git a/eeschema/sch_component.cpp b/eeschema/sch_component.cpp index 1a22ceef94..83b2fe64a6 100644 --- a/eeschema/sch_component.cpp +++ b/eeschema/sch_component.cpp @@ -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 = m_pins[ m_pinMap.at( pin ) ].get();; + 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(); diff --git a/eeschema/sch_edit_frame.cpp b/eeschema/sch_edit_frame.cpp index 7f1cd27cd2..65c08376be 100644 --- a/eeschema/sch_edit_frame.cpp +++ b/eeschema/sch_edit_frame.cpp @@ -1189,3 +1189,10 @@ bool SCH_EDIT_FRAME::IsContentModified() return sheetList.IsModified(); } + + +bool SCH_EDIT_FRAME::GetShowAllPins() const +{ + EESCHEMA_SETTINGS* cfg = eeconfig(); + return cfg->m_Appearance.show_hidden_pins; +} diff --git a/eeschema/sch_edit_frame.h b/eeschema/sch_edit_frame.h index 74466f779b..1d450b3908 100644 --- a/eeschema/sch_edit_frame.h +++ b/eeschema/sch_edit_frame.h @@ -183,6 +183,11 @@ public: void OnCloseWindow( wxCloseEvent& Event ); + /** + * Allow edit frame to show/hide hidden pins. + */ + bool GetShowAllPins() const override; + const wxString& GetNetListFormatName() const { return m_netListFormat; } void SetNetListFormatName( const wxString& aFormat ) { m_netListFormat = aFormat; }