From d67ceea5681ed5fb9f93aabd9165e45af9126db1 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 18 Feb 2018 22:02:06 +0000 Subject: [PATCH] Set current sheet number when only annotating a single sheet. Fixes: lp:1750096 * https://bugs.launchpad.net/kicad/+bug/1750096 --- eeschema/sch_edit_frame.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eeschema/sch_edit_frame.cpp b/eeschema/sch_edit_frame.cpp index ab68c9a1d2..98816c434e 100644 --- a/eeschema/sch_edit_frame.cpp +++ b/eeschema/sch_edit_frame.cpp @@ -519,6 +519,8 @@ void SCH_EDIT_FRAME::SetSheetNumberAndCount() * path */ } + m_CurrentSheet->SetPageNumber( SheetNumber ); + for( screen = s_list.GetFirst(); screen != NULL; screen = s_list.GetNext() ) { screen->m_NumberOfScreens = sheet_count;