From 1a35ebaf2dd8c2601f44d561df06e6db63be74ce Mon Sep 17 00:00:00 2001 From: Rich Date: Fri, 10 Nov 2017 17:35:36 +0000 Subject: [PATCH] B2017-254 - Fixed pagination logic. A high level step was moving to it's own page when there was room for it to fit on the current page --- 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 686d4195..cc982566 100644 --- a/PROMS/Volian.Print.Library/Pagination.cs +++ b/PROMS/Volian.Print.Library/Pagination.cs @@ -387,7 +387,7 @@ namespace Volian.Print.Library mySize += (2*SixLinesPerInch); // mySize is the size of this step and includes an extra blank line. For HLS, if this is the last step in section & there is room in footer to keep // step on the page, do so by eliminating the blank line before doing the test to see if it fits. - if (MyItemInfo.IsHigh && mySize >= (2 * SixLinesPerInch) && MyItemInfo.MyDocStyle.Layout.FooterLength > 0 && (MyItemInfo.MyDocStyle.End.Message == null || MyItemInfo.MyDocStyle.End.Message == "") && MyItemInfo.NextItem != null && (MyItemInfo.Steps == null || MyItemInfo.Steps.Count == 0) && (MyItemInfo.RNOs == null || MyItemInfo.RNOs.Count == 0)) + if (MyItemInfo.IsHigh && mySize >= (2 * SixLinesPerInch) && MyItemInfo.MyDocStyle.Layout.FooterLength > 0 && (MyItemInfo.MyDocStyle.End.Message == null || MyItemInfo.MyDocStyle.End.Message == "") && MyItemInfo.NextItem == null && (MyItemInfo.Steps == null || MyItemInfo.Steps.Count == 0) && (MyItemInfo.RNOs == null || MyItemInfo.RNOs.Count == 0)) mySize -= SixLinesPerInch; //// Account for extra lines in the end message (flag < 0) float adjMsgY = 0;