From b244a940ef31801aea4df003bba6d37840d290b4 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sat, 1 Jun 2019 19:44:29 -0700 Subject: [PATCH] pcbnew: Fix crash in modedit saving --- 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 e64b1ef37e..e7e2e8a5b4 100644 --- a/pcbnew/footprint_libraries_utils.cpp +++ b/pcbnew/footprint_libraries_utils.cpp @@ -804,7 +804,7 @@ bool FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard( bool aAddNew ) for( auto mod : mainpcb->Modules() ) { - if( module_in_edit->GetLink() == source_module->GetTimeStamp() ) + if( module_in_edit->GetLink() == mod->GetTimeStamp() ) { source_module = mod; break;