Fixed Background Document print bug where a second note/caution background would start printing two line lower on the page.

This commit is contained in:
John Jenko 2016-04-07 14:10:25 +00:00
parent abcedb6c0f
commit 4f99977685

View File

@ -2129,7 +2129,12 @@ namespace Volian.Print.Library
string myMsg = docstyle.Continue.Top.Message;
MyPageHelper.TopMessageRs = new List<vlnText>();
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)