From 183bdf015a7c58988311d50ec950cbece8341573 Mon Sep 17 00:00:00 2001 From: Rich Date: Wed, 1 Oct 2014 15:16:34 +0000 Subject: [PATCH] The logic was changed to keep the first continuuous subsection on the same page as its header. --- 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 d19257e9..95c99971 100644 --- a/PROMS/Volian.Print.Library/Pagination.cs +++ b/PROMS/Volian.Print.Library/Pagination.cs @@ -162,7 +162,7 @@ namespace Volian.Print.Library KeepStepsOnPage = false; if (ySizeIncludingFirst == YSize) KeepStepsOnPage = false; float ySectionEndMsg = !_skipEndMessage && MyItemInfo.IsSection && MyItemInfo.Steps != null && MyItemInfo.Steps.Count == 1 && (MyItemInfo.MyDocStyle.End.Message ?? "") != "" ? 2 * SixLinesPerInch : 0; - if (!KeepStepsOnPage && ySizeIncludingFirst + ySectionEndMsg > (yLocation - yBottomMargin)) + if (!KeepStepsOnPage && ySizeIncludingFirst + ySectionEndMsg > (yLocation - yBottomMargin)&& ! nearTheTop) { ShowPageBreak(4, "Page Break Before Continuous Step Section", "Yes", YSize, yPageSize, yWithinMargins, ManualPageBreak); return 1;