SCH_PIN: defer to lib pin for menu image

Otherwise we try to look up the icon for INHERIT,
which is an assertion.

This can be hit when long-clicking  no-connect on a pin.
This commit is contained in:
John Beard 2025-01-25 00:34:06 +08:00
parent 86394b7598
commit 6f2a3582ae

View File

@ -1797,6 +1797,9 @@ bool SCH_PIN::ConnectionPropagatesTo( const EDA_ITEM* aItem ) const
BITMAPS SCH_PIN::GetMenuImage() const
{
if( m_libPin )
return m_libPin->GetMenuImage();
return ElectricalPinTypeGetBitmap( m_type );
}