Don't discard footprint's library ID when saving.

Fixes: lp:1767736
* https://bugs.launchpad.net/kicad/+bug/1767736
This commit is contained in:
Jeff Young 2018-04-29 09:44:05 +01:00
parent ccb668c105
commit 41b92b6d0f
1 changed files with 1 additions and 1 deletions

View File

@ -755,7 +755,7 @@ bool FOOTPRINT_EDIT_FRAME::SaveFootprintInLibrary( wxString activeLibrary, MODUL
return false;
}
aModule->SetFPID( LIB_ID( footprintName ) );
aModule->SetFPID( LIB_ID( libraryName, footprintName ) );
// Legacy libraries are readable, but modifying legacy format is not allowed
// So prompt the user if he try to add/replace a footprint in a legacy lib