diff --git a/pcbnew/pcbexpr_functions.cpp b/pcbnew/pcbexpr_functions.cpp index ebbac4fb77..6b8f3819cb 100644 --- a/pcbnew/pcbexpr_functions.cpp +++ b/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;