diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index d7752f40..ea6f1294 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -1951,8 +1951,8 @@ namespace Volian.Print.Library if (MyPageHelper.CreatingSupInfoPage) yPageStart -= (2 * SixLinesPerInch); if (!addExtraLines && (!doSectionTitleContinued || !SectionShowTitles)) addExtraLines = DoTopContinueMsg(cb, ref yPageStart, yTopMargin, docstyle, doThreeContinues && MyItemInfo.MyParent != null && MyItemInfo.MyParent.MyTab != null ? MyItemInfo.MyParent.MyTab.CleanText : null); - - if (CompressPartOfStep) + // B2020-128: If compression flag is on RNO, see if there is an AER to the left and do the 7lpi multiplier + if (CompressPartOfStep || CompressRnoWithAerToTheLeft()) { MyPageHelper.YMultiplier = _SevenLinesPerInch / SixLinesPerInch; CompressPartOfStep = false; @@ -2296,6 +2296,19 @@ namespace Volian.Print.Library ProfileTimer.Pop(profileDepth); return yPageStart; } + // B2020-128: If compression flag is on RNO, see if there is an AER to the left and do the 7lpi multiplier + private bool CompressRnoWithAerToTheLeft() + { + if (!MyItemInfo.IsInRNO) return false; + foreach (vlnParagraph vPara in MyPageHelper.MyParagraphs.Values) + { + if (!vPara.Processed) + { + if (vPara.YOffset <= YOffset && vPara.CompressPartOfStep) return true; + } + } + return false; + } private bool IsPrintedStepItemForSupInfo() { bool printedMySectTitle = true;