diff --git a/eeschema/sch_sheet.cpp b/eeschema/sch_sheet.cpp index 5957010b88..202fceb217 100644 --- a/eeschema/sch_sheet.cpp +++ b/eeschema/sch_sheet.cpp @@ -1096,7 +1096,7 @@ SCH_SHEET& SCH_SHEET::operator=( const SCH_ITEM& aItem ) m_pins.back()->SetParent( this ); } - m_pageNumber = sheet->m_pageNumber; + m_pageNumber = m_pageNumber; } return *this;