Browse Source

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.
pull/16/head
Ian McInerney 5 years ago
parent
commit
750b186582
  1. 4
      eeschema/sch_pin.cpp

4
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();
}

Loading…
Cancel
Save