From 41b92b6d0f77f2f8c6685c64256666f34c484c0b Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 29 Apr 2018 09:44:05 +0100 Subject: [PATCH] Don't discard footprint's library ID when saving. Fixes: lp:1767736 * https://bugs.launchpad.net/kicad/+bug/1767736 --- pcbnew/footprint_libraries_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/footprint_libraries_utils.cpp b/pcbnew/footprint_libraries_utils.cpp index 137943be7b..f4c6beb7fb 100644 --- a/pcbnew/footprint_libraries_utils.cpp +++ b/pcbnew/footprint_libraries_utils.cpp @@ -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