Use REF** for all harvested footprints.

Fixes https://gitlab.com/kicad/code/kicad/issues/4518
This commit is contained in:
Jeff Young 2020-10-21 18:50:47 +01:00
parent 176f461b2c
commit 916a4d51a1
1 changed files with 1 additions and 17 deletions

View File

@ -623,23 +623,7 @@ void PCB_EDIT_FRAME::HarvestFootprintsToLibrary( bool aStoreInNewLib, const wxSt
auto resetReference = auto resetReference =
[]( MODULE* aFootprint ) []( MODULE* aFootprint )
{ {
wxString reference; aFootprint->SetReference( "REF**" );
if( aFootprint->GetAttributes() & MOD_SMD )
{
reference = "REF**";
}
else
{
reference = aFootprint->GetReference();
while( reference.Last() == '*' || wxIsdigit( reference.Last() ) )
reference.RemoveLast();
reference += wxT( "**" );
}
aFootprint->SetReference( reference );
}; };
if( !aStoreInNewLib ) if( !aStoreInNewLib )