diff --git a/pcbnew/tools/footprint_editor_control.cpp b/pcbnew/tools/footprint_editor_control.cpp index 9482e9a88c..c7162d254f 100644 --- a/pcbnew/tools/footprint_editor_control.cpp +++ b/pcbnew/tools/footprint_editor_control.cpp @@ -377,7 +377,7 @@ int FOOTPRINT_EDITOR_CONTROL::DuplicateFootprint( const TOOL_EVENT& aEvent ) if( footprint && m_frame->DuplicateFootprint( footprint ) ) { m_frame->SyncLibraryTree( true ); - m_frame->LoadFootprintFromLibrary( m_copiedFootprint->GetFPID() ); + m_frame->LoadFootprintFromLibrary( footprint->GetFPID() ); m_frame->FocusOnLibID( footprint->GetFPID() ); m_frame->RefreshLibraryTree(); }