Support LIB_ID queries in searchFootprints too

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18039


(cherry picked from commit fee0028ee9)

Co-authored-by: Jon Evans <jon@craftyjon.com>
This commit is contained in:
Jon Evans 2024-05-17 17:57:42 +00:00
parent 25bb3f77fa
commit 7f03666f96
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;