From 580e69cd5a129520f2497562e2074229880ae67b Mon Sep 17 00:00:00 2001 From: Kathy Date: Fri, 5 May 2023 14:28:52 +0000 Subject: [PATCH] =?UTF-8?q?B2023-047:=20Beaver=20Valley=20=E2=80=93=20pagi?= =?UTF-8?q?nation=20of=20subsection=20set=20as=20separate=20pagination?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/Volian.Print.Library/Pagination.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/PROMS/Volian.Print.Library/Pagination.cs b/PROMS/Volian.Print.Library/Pagination.cs index 1b80db15..2633b070 100644 --- a/PROMS/Volian.Print.Library/Pagination.cs +++ b/PROMS/Volian.Print.Library/Pagination.cs @@ -687,6 +687,15 @@ namespace Volian.Print.Library ShowPageBreak(6, CheckForFirstCompression("HLS with RNO will have to split on next page"), "Special", YSize, yPageSizeNextPage, yWithinMargins, ManualPageBreak); return 1; } + // B2023-047: Beaver Valley - pagination of subsection set as separate pagination. Need to reset page break + // list because & return 1 to start on new page. + else if (MyPageHelper.ParaBreaks.Count > 0 && this.MyItemInfo.IsHigh && sepPaginationForSubSection) + { + MyPageHelper.ParaBreaks.Clear(); + BuildPageBreakList(yPageSize + yExtra, yPageSizeNextPage + yExtra2, KeepStepsOnPage, yEndMsg, doSectionTitleContinued & SectionShowTitles, true); + ShowPageBreak(6, CheckForFirstCompression("HLS with Separate Pagination for SubSection"), "Special", YSize, yPageSizeNextPage, yWithinMargins, ManualPageBreak); + return 1; + } return 0; // Stay on this page }