From 587e614eae174a7f29a89190416e31df41bb0fdf Mon Sep 17 00:00:00 2001 From: Rich Date: Fri, 20 Dec 2013 14:30:56 +0000 Subject: [PATCH] Fixed ToPdf so that the RNO doesn't adjust the YPageStart in the middle of printing the AER. --- PROMS/Volian.Print.Library/vlnParagraph.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index ac607cbd..35b114f5 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -1050,7 +1050,11 @@ namespace Volian.Print.Library yPageStart = yTopMargin + YTop; } yPageStart = ParagraphToPdf(cb, yPageStart, yTopMargin, yBottomMargin); - yPageStart = ChildrenRight.ToPdf(cb, yPageStart, ref yTopMargin, ref yBottomMargin); + // If the yPageStart changes by more than a small amount (pagination) in the RNO (right column), then update + // yPageStart for the AER (left column). + float yPageStartRNO = ChildrenRight.ToPdf(cb, yPageStart, ref yTopMargin, ref yBottomMargin); + if (yPageStartRNO - yPageStart > 24) // 24 is two lines + yPageStart = yPageStartRNO; yPageStart = ChildrenBelow.ToPdf(cb, yPageStart, ref yTopMargin, ref yBottomMargin); if (MyItemInfo.IsHigh && MyItemInfo.NextItem == null) // last hls, add the 'end' message, if there is one