Browse Source

Use REF** for all harvested footprints.

Fixes https://gitlab.com/kicad/code/kicad/issues/4518
6.0.7
Jeff Young 5 years ago
parent
commit
916a4d51a1
  1. 18
      pcbnew/footprint_libraries_utils.cpp

18
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 )

Loading…
Cancel
Save