7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 22:03:47 +00:00

Allow FPID to be matched against in memberOfFootprint().

Fixes https://gitlab.com/kicad/code/kicad/-/issues/16662
This commit is contained in:
Jeff Young 2024-01-22 14:02:16 +00:00
parent 6efe44a12a
commit 236123c487

View File

@ -903,6 +903,12 @@ static void memberOfFootprintFunc( LIBEVAL::CONTEXT* aCtx, void* self )
{
if( parentFP->GetReference().Matches( arg->AsString() ) )
return 1.0;
if( arg->AsString().Contains( ':' )
&& parentFP->GetFPIDAsString().Matches( arg->AsString() ) )
{
return 1.0;
}
}
return 0.0;