diff --git a/PROMS/Volian.Print.Library/Pagination.cs b/PROMS/Volian.Print.Library/Pagination.cs index 9e74a785..686d4195 100644 --- a/PROMS/Volian.Print.Library/Pagination.cs +++ b/PROMS/Volian.Print.Library/Pagination.cs @@ -1173,10 +1173,15 @@ namespace Volian.Print.Library if (PageBreakOnStepList[0].YTop <= paraBreak.YTop) { PageBreakOnStepList[0].CompressFirstPartOfStep = paraBreak.CompressFirstPartOfStep; + // B2017-252 Robinson EOP Upgrade Basis Phase 1 Procedure set located in the Pre-Upgrade (Legacy) folder, + // EOP-FR-S.1-BD, WOG Step 13 no longer fits Deviations and References on the same page. + // Added the IF condition to fix the problem + // B2017-161: unnecessary PageBreak for background documents: use the 'usedPageBreakOnStepList' flag when using the PageBreakOnStepList, don't adjust space on page to account + // for continue message, if there is not one. + if (paraBreak != PageBreakOnStepList[0]) usedPageBreakOnStepList = true; paraBreak = PageBreakOnStepList[0]; PageBreakOnStepList.RemoveAt(0); yTopNew = paraBreak.YTop - YTopMost; - usedPageBreakOnStepList = true; } // The following code caused forced pagination for Catawba EOP BG - EP/1/A/5000/FR-C.1.SC..S16..N2..S4..S1. //else if(PageBreakOnStepList[0].YSize - yTop <= ySpaceOnCurPage) @@ -1201,6 +1206,8 @@ namespace Volian.Print.Library doSectionTitleContinued1 = false; } if (doSectionTitleContinued1) ySpaceOnNextPage1 -= 2 * SixLinesPerInch; // B2016-195: Account for Section Continue Message + // B2017-161: unnecessary PageBreak for background documents: use the 'usedPageBreakOnStepList' flag when using the PageBreakOnStepList, don't adjust space on page to account + // for continue message, if there is not one. if (!usedPageBreakOnStepList) ySpaceOnCurPage = ySpaceOnNextPage1; //ySpaceOnCurPage = yPageSize - (myTopMsgSpace + SixLinesPerInch); // Allow for continue message and blank line.