From 4f99977685f0e8a5c4b2171d3218d283431f367e Mon Sep 17 00:00:00 2001 From: John Date: Thu, 7 Apr 2016 14:10:25 +0000 Subject: [PATCH] Fixed Background Document print bug where a second note/caution background would start printing two line lower on the page. --- PROMS/Volian.Print.Library/vlnParagraph.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 61f3c3d7..c3a4315b 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -2129,7 +2129,12 @@ namespace Volian.Print.Library string myMsg = docstyle.Continue.Top.Message; MyPageHelper.TopMessageRs = new List(); - if (myMsg != null && myMsg != "") + // bug fix B2106-099 + // when there are more than one Caution/Note off of a high level background step, + // the second, third, etc background Caution/Note pages begin printing two additional lines from the top of the page + // to fix, added a check to see the the item we are printing has the PageBrrakOnStep flag set, if it's set, + // then DON'T add two lines to the yPageStart (for the top conitnue message) + if (myMsg != null && myMsg != "" && !MyItemInfo.FormatStepData.PageBreakOnStep) { yPageStart -= 2 * SixLinesPerInch;// Allow two lines for top continue message if (myMsg.IndexOf(@"%sR") > -1)