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.
This commit is contained in:
Ian McInerney 2020-08-24 01:18:46 +01:00
parent fba6152709
commit 750b186582
1 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ wxString SCH_PIN::GetName() const
ELECTRICAL_PINTYPE SCH_PIN::GetType() const ELECTRICAL_PINTYPE SCH_PIN::GetType() const
{ {
if( !m_alt.IsEmpty() ) if( !m_alt.IsEmpty() )
m_libPin->GetAlt( m_alt ).m_Type; return m_libPin->GetAlt( m_alt ).m_Type;
return m_libPin->GetType(); return m_libPin->GetType();
} }
@ -79,7 +79,7 @@ ELECTRICAL_PINTYPE SCH_PIN::GetType() const
GRAPHIC_PINSHAPE SCH_PIN::GetShape() const GRAPHIC_PINSHAPE SCH_PIN::GetShape() const
{ {
if( !m_alt.IsEmpty() ) if( !m_alt.IsEmpty() )
m_libPin->GetAlt( m_alt ).m_Shape; return m_libPin->GetAlt( m_alt ).m_Shape;
return m_libPin->GetShape(); return m_libPin->GetShape();
} }