Debug location for ChangeBars
This commit is contained in:
parent
b46ef2f538
commit
7e780cace3
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user