B2023-033: Calvert Pagination Issues

This commit is contained in:
Kathy Ruffing 2023-03-10 16:01:31 +00:00
parent 74542224ef
commit 0e3dd86eba

View File

@ -447,10 +447,14 @@ namespace Volian.Print.Library
// 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)
// B2023-033: don't do the sub-section check that was done for Beaver Valley (F2023-015) for Calvert
if (!MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvert)
{
if ((MyItemInfo.MyActiveSection.MyConfig as SectionConfig).Section_Pagination == SectionConfig.SectionPagination.Separate)
sepPaginationForSubSection = true;
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)