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:
parent
49bcf7e7c1
commit
22be9d94dd
@ -1580,7 +1580,10 @@ namespace Volian.Print.Library
|
|||||||
float spaceOnCurrentPage = fullPage - (-yLocation+yStart);
|
float spaceOnCurrentPage = fullPage - (-yLocation+yStart);
|
||||||
// B2019-124 - Pagination - if substep will fit on a blank page but will not fit on the current page
|
// 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
|
// 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)
|
private static bool InSameBox(vlnParagraph myPara, vlnParagraph minPara2)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user