F2023-015 logic to insure the correct pagelist is used for sub-sections that start on their own page
F2023-015 logic to make sure the section text on the sub-section that starts on its own page starts printing at the top of the page
This commit is contained in:
@@ -443,8 +443,17 @@ namespace Volian.Print.Library
|
||||
adjMsgY = (float)-MyItemInfo.MyDocStyle.End.Flag * SixLinesPerInch;
|
||||
if (yEndMsg != 0) yEndMsg += adjMsgY;
|
||||
}
|
||||
if (!ManualPageBreak && (mySize + yEndMsg <= yWithinMargins + yExtra) || // Don't Paginate if there is enough room, will fit on page
|
||||
(mySize <= yWithinMargins + yExtra && SpecialCaseForRobinson()))
|
||||
// F2023-015 check if on the first step of a sub-section that starts on its own page (separate pagination)
|
||||
// Beaver Valley as two sub-sections that are printed continuously followed by a third sub-section printed separate.
|
||||
// without this logic, the first step is printed at the same y-location as if it was on the previous page
|
||||
bool sepPaginationForSubSection = false;
|
||||
if (MyItemInfo.IsHigh && MyItemInfo.MyPrevious== null && MyItemInfo.MyActiveSection.IsSubsection)
|
||||
{
|
||||
if ((MyItemInfo.MyActiveSection.MyConfig as SectionConfig).Section_Pagination == SectionConfig.SectionPagination.Separate)
|
||||
sepPaginationForSubSection = true;
|
||||
}
|
||||
if (!ManualPageBreak && ((mySize + yEndMsg <= yWithinMargins + yExtra) || // Don't Paginate if there is enough room, will fit on page
|
||||
(mySize <= yWithinMargins + yExtra && SpecialCaseForRobinson())) && !sepPaginationForSubSection)
|
||||
//if (!ManualPageBreak && mySize + yEndMsg <= yWithinMargins + SixLinesPerInch) // Don't Paginate if there is enough room, will fit on page
|
||||
{
|
||||
// ooooo ooooo ooooo .oooooo..o o8o oooo oooo .o88o. o8o .
|
||||
|
Reference in New Issue
Block a user