diff --git a/pcbnew/footprint_libraries_utils.cpp b/pcbnew/footprint_libraries_utils.cpp index c1b5d4308d..0f15c98a76 100644 --- a/pcbnew/footprint_libraries_utils.cpp +++ b/pcbnew/footprint_libraries_utils.cpp @@ -623,23 +623,7 @@ void PCB_EDIT_FRAME::HarvestFootprintsToLibrary( bool aStoreInNewLib, const wxSt auto resetReference = []( MODULE* aFootprint ) { - wxString reference; - - if( aFootprint->GetAttributes() & MOD_SMD ) - { - reference = "REF**"; - } - else - { - reference = aFootprint->GetReference(); - - while( reference.Last() == '*' || wxIsdigit( reference.Last() ) ) - reference.RemoveLast(); - - reference += wxT( "**" ); - } - - aFootprint->SetReference( reference ); + aFootprint->SetReference( "REF**" ); }; if( !aStoreInNewLib )