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:
parent
cab40604e0
commit
bcf4a77370
@ -1578,7 +1578,9 @@ namespace Volian.Print.Library
|
|||||||
private static bool StepWillFitOnBlankPageButNotOnCurrentPage(vlnParagraph myPara, float yLocation, float yStart,float fullPage)
|
private static bool StepWillFitOnBlankPageButNotOnCurrentPage(vlnParagraph myPara, float yLocation, float yStart,float fullPage)
|
||||||
{
|
{
|
||||||
float spaceOnCurrentPage = fullPage - (-yLocation+yStart);
|
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)
|
private static bool InSameBox(vlnParagraph myPara, vlnParagraph minPara2)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user