Minor FOOTPRINT_FILTER fix

This commit is contained in:
Chris Pavlina 2017-07-15 22:30:42 -06:00
parent 10c5297f2e
commit 5755582c53
1 changed files with 2 additions and 1 deletions

View File

@ -154,7 +154,8 @@ bool FOOTPRINT_FILTER_IT::FootprintFilterMatch( FOOTPRINT_INFO& aItem )
bool FOOTPRINT_FILTER_IT::PinCountMatch( FOOTPRINT_INFO& aItem )
{
return (unsigned) m_filter->m_pin_count == aItem.GetUniquePadCount();
return m_filter->m_pin_count >= 0 &&
(unsigned) m_filter->m_pin_count == aItem.GetUniquePadCount();
}