From 4c65085fa57d4c30771ecb7d0fa6f3ee1e20dfd6 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 23 Jan 2025 14:54:10 +0000 Subject: [PATCH] Search within symbols' draw items as well. --- eeschema/sch_symbol.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eeschema/sch_symbol.cpp b/eeschema/sch_symbol.cpp index 90d5e714f1..100ae118c8 100644 --- a/eeschema/sch_symbol.cpp +++ b/eeschema/sch_symbol.cpp @@ -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; }