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.

This commit is contained in:
Rich 2019-08-29 15:47:27 +00:00
parent cab40604e0
commit bcf4a77370

View File

@ -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)
{