From d84f9b2e64f38750d09f33fd16cd20136c0d791b Mon Sep 17 00:00:00 2001 From: Rich Date: Mon, 23 Feb 2015 15:47:48 +0000 Subject: [PATCH] If the first step of a section starts at less that three inches from the top of a page (after the section header) and the step is longer than a page, allow the step to break to keep the section header with the step. --- PROMS/Volian.Print.Library/Pagination.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/Pagination.cs b/PROMS/Volian.Print.Library/Pagination.cs index 51f91c26..0e214df0 100644 --- a/PROMS/Volian.Print.Library/Pagination.cs +++ b/PROMS/Volian.Print.Library/Pagination.cs @@ -299,7 +299,7 @@ namespace Volian.Print.Library //yExtra2 -= sectionSpace; // This was removed for Calvert STP O-73H-2 Section 6.3.O.4 and 6.3.R.3 } } - if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvert && yPageSizeNextPage < yWithinMargins + 108 && MyItemInfo.MyPrevious == null) + if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvert && yPageSizeNextPage < yWithinMargins + 3*72 && MyItemInfo.MyPrevious == null) KeepStepsOnPage = true; if (!KeepWithHeader && !KeepStepsOnPage && YSize - SixLinesPerInch + yEndMsg <= yPageSizeNextPage) // if the entire step can fit on one page, do a page break {