7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 00:21:25 +00:00

Search within symbols' draw items as well.

This commit is contained in:
Jeff Young 2025-01-23 14:54:10 +00:00
parent 7f307afb04
commit 4c65085fa5

View File

@ -2190,6 +2190,12 @@ void SCH_SYMBOL::Rotate( const VECTOR2I& aCenter, bool aRotateCCW )
bool SCH_SYMBOL::Matches( const EDA_SEARCH_DATA& aSearchData, void* aAuxData ) const
{
for( SCH_ITEM& drawItem : GetLibSymbolRef()->GetDrawItems() )
{
if( drawItem.Matches( aSearchData, aAuxData ) )
return true;
}
// Symbols are searchable via the child field and pin item text.
return false;
}