From 916a4d51a166c970ad46a00a6922dcf0ffb1eafc Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 21 Oct 2020 18:50:47 +0100 Subject: [PATCH] Use REF** for all harvested footprints. Fixes https://gitlab.com/kicad/code/kicad/issues/4518 --- pcbnew/footprint_libraries_utils.cpp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) 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 )