Fix LIB_FIELD selection bug. (It wasn't checking for convert == 0.)

This commit is contained in:
Jeff Young 2019-05-06 16:01:39 +01:00
parent d12eee9c98
commit 13beb344ca
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ SEARCH_RESULT SCH_COLLECTOR::Inspect( EDA_ITEM* aItem, void* aTestData )
if( m_Unit && lib_item && lib_item->GetUnit() && lib_item->GetUnit() != m_Unit )
return SEARCH_CONTINUE;
if( m_Convert && lib_item && lib_item->GetConvert() != m_Convert )
if( m_Convert && lib_item && lib_item->GetConvert() && lib_item->GetConvert() != m_Convert )
return SEARCH_CONTINUE;
}