Support LIB_ID queries in searchFootprints too

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18039
This commit is contained in:
Jon Evans 2024-05-17 13:56:41 -04:00
parent a762311733
commit fee0028ee9
1 changed files with 6 additions and 0 deletions

View File

@ -234,6 +234,12 @@ static bool searchFootprints( BOARD* aBoard, const wxString& aArg, PCBEXPR_CONTE
if( aFunc( fp ) )
return true;
}
else if( aArg.Contains( ':' )
&& fp->GetFPIDAsString().Matches( aArg ) )
{
if( aFunc( fp ) )
return true;
}
}
return false;