diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 953591d1..a5cfbe8d 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -4457,11 +4457,13 @@ namespace Volian.Print.Library if (MyFlexGrid.BorderStyle == C1.Win.C1FlexGrid.Util.BaseControls.BorderStyleEnum.None && !MyFlexGrid.TopRowHasBorder() && !MyItemInfo.IsCautionOrNotePart) yoffadj = -SixLinesPerInch; } - + // B2023-008: when an equation is off a paragraph sub-step in single column mode, extra lines were added so + // when in single column mode & the substep has an equation (rtfraw), then don't reset yoffright to yverybottom + bool rtfRawInSingleCol = (itemInfo.ColumnMode == ((int)VEPROMS.CSLA.Library.SectionConfig.SectionColumnMode.One-1)) && (itemInfo.Tables != null && itemInfo.Tables.Count > 0 && itemInfo.Tables[0].IsRtfRaw); if (yOffRight < yoffRightParent) yOffRight = yoffRightParent; // find the very bottom Yoffset (don't do this is in single column mode for cautions/notes: B2016-261) vlnParagraph parentPar = parent; - if (!((MyItemInfo.IsCaution || MyItemInfo.IsNote) && itemInfo.RNOLevel == 0)) + if (!rtfRawInSingleCol && (!((MyItemInfo.IsCaution || MyItemInfo.IsNote) && itemInfo.RNOLevel == 0))) { while (parentPar != null && parentPar.MyItemInfo.IsStep) {