From bcf4a77370c71a5aa6d116a56972a7a2cd90fba1 Mon Sep 17 00:00:00 2001 From: Rich Date: Thu, 29 Aug 2019 15:47:27 +0000 Subject: [PATCH] B2019-124 - Pagination - if substep will fit on a blank page but will not fit on the current page and is not the first substep then break. This trys to keep substeps together. --- PROMS/Volian.Print.Library/Pagination.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/Pagination.cs b/PROMS/Volian.Print.Library/Pagination.cs index b65a3213..d33de78c 100644 --- a/PROMS/Volian.Print.Library/Pagination.cs +++ b/PROMS/Volian.Print.Library/Pagination.cs @@ -1578,7 +1578,9 @@ namespace Volian.Print.Library private static bool StepWillFitOnBlankPageButNotOnCurrentPage(vlnParagraph myPara, float yLocation, float yStart,float fullPage) { float spaceOnCurrentPage = fullPage - (-yLocation+yStart); - return (myPara.YSize > spaceOnCurrentPage && myPara.YSize < fullPage); + // B2019-124 - Pagination - if substep will fit on a blank page but will not fit on the current page + // And is not the first substep then break + return (myPara.MyItemInfo.Ordinal > 1 && myPara.YSize > spaceOnCurrentPage && myPara.YSize < fullPage); } private static bool InSameBox(vlnParagraph myPara, vlnParagraph minPara2) {