Fix assert from IsPower in search_handlers.cpp

Fixes KICAD-2C6
This commit is contained in:
Marek Roszko 2023-10-01 09:19:41 -04:00
parent 7005dd7c48
commit 0fc3f20e4d
1 changed files with 2 additions and 1 deletions

View File

@ -149,7 +149,8 @@ int SYMBOL_SEARCH_HANDLER::Search( const wxString& aQuery )
{
SCH_SYMBOL* sym = dynamic_cast<SCH_SYMBOL*>( item );
if( sym->IsPower() )
// IsPower depends on non-missing lib symbol association
if( !sym->IsMissingLibSymbol() && sym->IsPower() )
return false;
for( SCH_FIELD& field : sym->GetFields() )