Use REF** for all harvested footprints.
Fixes https://gitlab.com/kicad/code/kicad/issues/4518
This commit is contained in:
parent
176f461b2c
commit
916a4d51a1
|
@ -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…
Reference in New Issue