Give auto-created fields names.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/21928
This commit is contained in:
Jeff Young
2025-10-12 20:28:08 +01:00
parent 51f7e3238a
commit 4c91cba7c8
@@ -3481,7 +3481,10 @@ PCB_TEXT* PCB_IO_KICAD_SEXPR_PARSER::parsePCB_TEXT( BOARD_ITEM* aParent, PCB_TEX
{
// Convert hidden footprint text (which is no longer supported) into a hidden field
if( !text->IsVisible() && text->Type() == PCB_TEXT_T )
return new PCB_FIELD( *text.get(), FIELD_T::USER );
{
wxString fieldName = GetUserFieldName( parentFP->GetFields().size(), !DO_TRANSLATE );
return new PCB_FIELD( *text.get(), FIELD_T::USER, fieldName );
}
}
else
{