diff --git a/PROMS/Volian.Print.Library/vlnChangeBar.cs b/PROMS/Volian.Print.Library/vlnChangeBar.cs index a0ce3ac9..21e1a170 100644 --- a/PROMS/Volian.Print.Library/vlnChangeBar.cs +++ b/PROMS/Volian.Print.Library/vlnChangeBar.cs @@ -95,7 +95,12 @@ namespace Volian.Print.Library _Height = parent.Height * MyPageHelper.YMultiplier + (parent.MyItemInfo.IsFigure?SixLinesPerInch:0); foreach (vlnPrintObject vpo in parent.PartsBelow) { - if (vpo is vlnRNOSeparator) _YExtendLine = (vpo.Height + vpo.YOffset - (parent.Height + parent.YOffset)) * MyPageHelper.YMultiplier; + if (vpo is vlnRNOSeparator) + { + // see if any of children don't have changebar + if ((vpo as vlnRNOSeparator).ExtendChangeBar) + _YExtendLine = (vpo.Height + vpo.YOffset - (parent.Height + parent.YOffset)) * MyPageHelper.YMultiplier; + } } foreach (vlnPrintObject vph in parent.PartsAbove) { @@ -105,7 +110,7 @@ namespace Volian.Print.Library vlnHeader tmp = vph as vlnHeader; // the separator must exist and the previous must have a change bar. - if ((sep != "") && (tmp.Text == sep) && parent.MyItemInfo.MyPrevious != null && parent.MyItemInfo.MyPrevious.HasChangeBar()) + if ((sep != "") && (tmp.Text == sep) && parent.MyItemInfo.MyPrevious != null && parent.MyItemInfo.MyPrevious.HasChangeBar) { vlnParagraph prev = MyPageHelper.MyParagraphs[parent.MyItemInfo.MyPrevious.ItemID]; float delta = parent.YOffset - prev.YOffset;