From b3abf86b9f208d81765cd6c3276057f6d943bb0b Mon Sep 17 00:00:00 2001 From: Rich Date: Fri, 30 May 2014 13:35:04 +0000 Subject: [PATCH] Properly position OR at the top of a page when required --- PROMS/Volian.Print.Library/vlnParagraph.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 5a4035eb..da8980d5 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -955,7 +955,8 @@ namespace Volian.Print.Library // If there is a box, adjust the yTopMost to include it. float yTopMost = YTopMost; - //if (YVeryTop < yTopMost) Console.WriteLine("{0},{1},{2}", MyItemInfo.DBSequence, yTopMost, YVeryTop); + if ((MyItemInfo.IsCautionPart || MyItemInfo.IsNotePart) && MyParent.PartsAbove.Count > 0) + yTopMost = MyParent.PartsAbove[0].YOffset; yTopMost = Math.Min(yTopMost, YVeryTop); yPageStart = yTopMargin + yTopMost;// -2 * SixLinesPerInch; DoCheckOffHeader(cb, MyItemInfo, yLocation, yTopMargin, yPageStart);