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.

This commit is contained in:
Kathy Ruffing 2017-08-17 12:33:34 +00:00
parent fca2704dc4
commit 086adde4c6

View File

@ -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.
{