From 086adde4c68ef73e5c310fc772ca7e7c94845cba Mon Sep 17 00:00:00 2001 From: Kathy Date: Thu, 17 Aug 2017 12:33:34 +0000 Subject: [PATCH] B2017-106: For Comanche Peak, the top continue message prints on top of note/Caution lines if the note or caution is at the top of the page. --- PROMS/Volian.Print.Library/vlnParagraph.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 0ce4bf42..e588b640 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -2480,7 +2480,10 @@ namespace Volian.Print.Library // replace C# representation of unicode character "\u25CF" which is hex // with the rtf representation @"\u9679?" if (cltxt.Contains("\u25CF")) cltxt = cltxt.Replace("\u25CF", @"\u9679?"); // handle a bullet, if it isn't unicode yet - MyPageHelper.TopMessageRs.Add(new vlnText(cb, this, cltxt, cltxt, vt.XOffset, yTopMargin, vt.MyFont)); + float msgTopMargin = yTopMargin; + // B2017-106: if caution/note move the message up a little so it doesn't touch the caution/note lines: + if (MyItemInfo.IsNote || MyItemInfo.IsCaution) msgTopMargin += 4; + MyPageHelper.TopMessageRs.Add(new vlnText(cb, this, cltxt, cltxt, vt.XOffset, msgTopMargin, vt.MyFont)); } else if (vpo is vlnText) // As of 6/22/15, CP wants the step designator in the continue message also. {