diff --git a/eeschema/tools/sch_edit_tool.cpp b/eeschema/tools/sch_edit_tool.cpp index 82d5fc4d57..96ebf1e661 100644 --- a/eeschema/tools/sch_edit_tool.cpp +++ b/eeschema/tools/sch_edit_tool.cpp @@ -806,7 +806,7 @@ int SCH_EDIT_TOOL::Duplicate( const TOOL_EVENT& aEvent ) nameField.SetText( candidateName ); - sheet->SetParent( m_frame->GetScreen() ); + sheet->SetParent( m_frame->GetCurrentSheet().Last() ); m_frame->AddToScreen( sheet ); copiedSheets = true;