diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 40be09bf..074691f2 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -1513,9 +1513,10 @@ namespace Volian.Print.Library { msg_yLocation = yTopMargin - (float)(docstyle.End.Flag * SixLinesPerInch); } + float adjMsgY = 0; if (docstyle.End.Flag < 0) // Adjust this many lines down the page. { - float adjMsgY = (float)(-docstyle.End.Flag * SixLinesPerInch); + adjMsgY = (float)(-docstyle.End.Flag * SixLinesPerInch); if (msg_yLocation - adjMsgY > docstyle.Layout.FooterLength) msg_yLocation = msg_yLocation - adjMsgY; } if (myMsg.Contains("{Section Number}")) myMsg = myMsg.Replace("{Section Number}", MyItemInfo.ActiveSection.DisplayNumber); @@ -1538,7 +1539,7 @@ namespace Volian.Print.Library xpos = Math.Max(xpos, XOffsetBox + (float)docstyle.Layout.LeftMargin); MyPageHelper.BottomMessage = new vlnText(cb, this, myMsg, myMsg, xpos, msg_yLocation, docstyle.End.Font); MyPageHelper.MyGaps.Add(new Gap(msg_yLocation, msg_yLocation - MyPageHelper.BottomMessage.Height)); - yPageStart -= MyPageHelper.BottomMessage.Height; + yPageStart -= (MyPageHelper.BottomMessage.Height + adjMsgY); } } }