B2019-130 Added check for when sub step is a different type but at the save level as the previous sub step.

This commit is contained in:
John Jenko 2019-09-09 15:50:49 +00:00
parent 49bcf7e7c1
commit 22be9d94dd

View File

@ -1580,7 +1580,10 @@ namespace Volian.Print.Library
float spaceOnCurrentPage = fullPage - (-yLocation+yStart);
// 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);
// B2019-130 - in Calvert data (FSG-1 Appendix 1 Unit 1 Actions, step E.1.g) the THEN sub step was placed on the next page
// the THEN sub step is at the same level as the bullet items above it (is a bullet item changed to a paragraph)
// We added a check for this via current content type vs previous content type.
return (myPara.MyItemInfo.Ordinal > 1 && myPara.MyItemInfo.MyContent.Type == myPara.MyItemInfo.MyPrevious.MyContent.Type && myPara.YSize > spaceOnCurrentPage && myPara.YSize < fullPage);
}
private static bool InSameBox(vlnParagraph myPara, vlnParagraph minPara2)
{