diff --git a/PROMS/Volian.Print.Library/vlnChangeBar.cs b/PROMS/Volian.Print.Library/vlnChangeBar.cs index 7ed8f414..0645024f 100644 --- a/PROMS/Volian.Print.Library/vlnChangeBar.cs +++ b/PROMS/Volian.Print.Library/vlnChangeBar.cs @@ -105,7 +105,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.HeaderText == sep) && parent.MyItemInfo.MyPrevious.HasChangeBar()) + if ((sep != "") && (tmp.HeaderText == sep) && parent.MyItemInfo.MyPrevious != null && parent.MyItemInfo.MyPrevious.HasChangeBar()) { vlnParagraph prev = MyPageHelper.MyParagraphs[parent.MyItemInfo.MyPrevious.ItemID]; float delta = parent.YOffset - prev.YOffset; @@ -137,8 +137,8 @@ namespace Volian.Print.Library cb.MoveTo(XOffset + xAdj, YOffset - yAdj); // combination yStart and YOffset cb.LineTo(XOffset + xAdj, YChangeBarBottomExtend - yAdj - 1); cb.Stroke(); - DebugPdf(cb, XOffset + 5, YChangeBarBottomExtend - yAdj - 1); - DebugPdf(cb, XOffset + 5, YOffset - yAdj); + DebugPdf(cb, XOffset + xAdj - 1.5F, YOffset - yAdj + 4); + DebugPdf(cb, XOffset + xAdj - 1.5F, YChangeBarBottomExtend - yAdj - 1); if (Messages != null) { // Loop through messages for this change bar. The first message is the bottom-most, which is always put out. diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index d413286b..ecac8d9f 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -156,7 +156,7 @@ namespace Volian.Print.Library { float yPageSize = yTopMargin - yBottomMargin; float yWithinMargins = CalculateYLocation(yLocation, yTopMargin) - yBottomMargin; - if (MyItemInfo.ItemID == 941) + if (MyItemInfo.ItemID == 832) Console.Write(",'Here'"); if (MyItemInfo.IsStepSection) return 0; // Don't Paginate on a Step Section float mySize = YSize * MyPageHelper.YMultiplier;