B2020-121: pagination/location of BGE Alarms, Condition Response Caution/Notes

This commit is contained in:
2020-09-14 13:14:54 +00:00
parent a4395852b6
commit 377788c314
3 changed files with 32 additions and 22 deletions

View File

@@ -874,11 +874,14 @@ namespace Volian.Print.Library
private vlnParagraph FirstCRParagraph(vlnParagraph pg)
{
if (pg.HasCalvertMacro) return null;
while ( !pg.MyParent.HasCalvertMacro)
while (!pg.MyParent.HasCalvertMacro)
pg = pg.MyParent;
if(pg.MyItemInfo.MyPrevious == null)
if (pg.MyItemInfo.MyPrevious == null)
return pg;
return pg.MyParent.ChildrenBelow[0];
// B2020-121: Account for Header on Caution or Note
pg = pg.MyParent.ChildrenBelow[0];
pg = pg.TopMostChild;
return pg;
}
private void BuildPageBreakList(float ySpaceOnCurPage, float yPageSize, bool KeepStepsOnPage, float yEndMsg, bool doSectionTitleContinued, bool onNewPage)
{