From a21c2a7fd97c8fc4ad08a81cca2ffa0a2bae6cdb Mon Sep 17 00:00:00 2001 From: Kathy Date: Tue, 7 Dec 2010 12:54:00 +0000 Subject: [PATCH] --- PROMS/Volian.Print.Library/vlnChangeBar.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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;