From a958f403d8d822fb19a17d93b165d94dcc44cdee Mon Sep 17 00:00:00 2001 From: Rich Date: Thu, 2 Mar 2017 15:14:28 +0000 Subject: [PATCH] B2017-036 - Fixed logic to account for Section Continue Message. Found in Automated Testing --- PROMS/Volian.Print.Library/Pagination.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/Pagination.cs b/PROMS/Volian.Print.Library/Pagination.cs index acc6ecb0..aa3d1d18 100644 --- a/PROMS/Volian.Print.Library/Pagination.cs +++ b/PROMS/Volian.Print.Library/Pagination.cs @@ -265,7 +265,7 @@ namespace Volian.Print.Library return 0; // Don't Paginate (page break) on a Step Section if it's first thing on page } if (!MyItemInfo.IsHigh) return 0; // Don't Paginate on a Substep level - bool doSectionTitleContinued = false; + bool doSectionTitleContinued = false; if (MyPageHelper.NotesToFootNotes != null && MyPageHelper.NotesToFootNotes.Count > 0) { float vpHeight = SixLinesPerInch; @@ -1109,6 +1109,12 @@ namespace Volian.Print.Library SectionConfig sch = MyItemInfo.ActiveSection.MyConfig as SectionConfig; // B2016-266 Only set SectionTitleContinued1 if the format supports section continue messages bool doSectionTitleContinued1 = (sch == null || sch.Section_PrintHdr == "Y") && !MyItemInfo.MyDocStyle.CancelSectTitle && MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.ContinueSectionHeader; + if (doSectionTitleContinued1 && MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvert) + { + string myMsg = MyItemInfo.MyDocStyle.Continue.Top.Message; + if (myMsg != null && myMsg != "") + doSectionTitleContinued1 = false; + } if (doSectionTitleContinued1) ySpaceOnNextPage1 -= 2 * SixLinesPerInch; // B2016-195: Account for Section Continue Message ySpaceOnCurPage = ySpaceOnNextPage1;