Browse Source

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>
fusion360
Jon Evans 1 year ago
parent
commit
7f03666f96
  1. 6
      pcbnew/pcbexpr_functions.cpp

6
pcbnew/pcbexpr_functions.cpp

@ -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;

Loading…
Cancel
Save