From 750b186582c858ccec14cacc92940220091b35cf Mon Sep 17 00:00:00 2001 From: Ian McInerney Date: Mon, 24 Aug 2020 01:18:46 +0100 Subject: [PATCH] Return the type and shape for alternate pins These return statements were missing from the original implementation, so the alternate style was never being returned. --- eeschema/sch_pin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eeschema/sch_pin.cpp b/eeschema/sch_pin.cpp index 1c23adba8d..497209e8e3 100644 --- a/eeschema/sch_pin.cpp +++ b/eeschema/sch_pin.cpp @@ -70,7 +70,7 @@ wxString SCH_PIN::GetName() const ELECTRICAL_PINTYPE SCH_PIN::GetType() const { if( !m_alt.IsEmpty() ) - m_libPin->GetAlt( m_alt ).m_Type; + return m_libPin->GetAlt( m_alt ).m_Type; return m_libPin->GetType(); } @@ -79,7 +79,7 @@ ELECTRICAL_PINTYPE SCH_PIN::GetType() const GRAPHIC_PINSHAPE SCH_PIN::GetShape() const { if( !m_alt.IsEmpty() ) - m_libPin->GetAlt( m_alt ).m_Shape; + return m_libPin->GetAlt( m_alt ).m_Shape; return m_libPin->GetShape(); }