pcb search: don't list generators in groups
This commit is contained in:
@@ -2188,7 +2188,6 @@ int PCB_CONTROL::UpdateMessagePanel( const TOOL_EVENT& aEvent )
|
||||
|
||||
if( aItem->Type() == PCB_GROUP_T || aItem->Type() == PCB_GENERATOR_T )
|
||||
{
|
||||
// Use dynamic_cast to include PCB_GENERATORs.
|
||||
static_cast<PCB_GROUP*>( aItem )->RunOnChildren( accumulateArea, RECURSE_MODE::RECURSE );
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -364,6 +364,10 @@ int GROUP_SEARCH_HANDLER::Search( const wxString& aQuery )
|
||||
|
||||
for( BOARD_ITEM* item : board->Groups() )
|
||||
{
|
||||
// Skip generators, they are for internal use, not user-facing grouping
|
||||
if( item->Type() == PCB_GENERATOR_T )
|
||||
continue;
|
||||
|
||||
if( frp.findString.IsEmpty() || item->Matches( frp, nullptr ) )
|
||||
m_hitlist.push_back( item );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user