Changed DBSequence to Short Path in debug output
This commit is contained in:
parent
be0ae3dbe2
commit
74a8145f1d
@ -904,8 +904,8 @@ namespace Volian.Print.Library
|
|||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return string.Format("DebugID = {0}, ID={1} Type={2} TypeName='{3}' StepLevel={4} DBSequence={5} Width={6} Left={7}",
|
return string.Format("DebugID = {0}, ID={1} Type={2} TypeName='{3}' StepLevel={4} ShortPath={5} Width={6} Left={7}",
|
||||||
DebugId, MyItemInfo.ItemID, MyItemInfo.FormatStepType, MyItemInfo.FormatStepData == null ? "NoStepData" : MyItemInfo.FormatStepData.Type, MyItemInfo.StepLevel, MyItemInfo.DBSequence, Width, XOffset);
|
DebugId, MyItemInfo.ItemID, MyItemInfo.FormatStepType, MyItemInfo.FormatStepData == null ? "NoStepData" : MyItemInfo.FormatStepData.Type, MyItemInfo.StepLevel, MyItemInfo.ShortPath, Width, XOffset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private void ResetDocStyleAndValues(ref float yTopMargin, ref float yBottomMargin)
|
private void ResetDocStyleAndValues(ref float yTopMargin, ref float yBottomMargin)
|
||||||
@ -2685,28 +2685,10 @@ namespace Volian.Print.Library
|
|||||||
xloc_co = XOffset + (relX > 0 ? Width : 0) + relX;
|
xloc_co = XOffset + (relX > 0 ? Width : 0) + relX;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
float xtraCheckOffLines = (co.CheckOffXtraLines ?? 0) * SixLinesPerInch;
|
||||||
// if xtraCheckOffLines is a negative number, start the checkoff on the same line
|
|
||||||
// as text and adjust the y-offset after the checkoff by the amount of the absolute
|
|
||||||
// value of xtraCheckOffLines.
|
|
||||||
// if xtraCheckOffLines is a positive number, start the checkoff xtraCheckOffLines - 1
|
|
||||||
// down from the text and adjust the y-offset after the checkoff by the amount
|
|
||||||
// of xtraCheckOffLines.
|
|
||||||
float xtraCheckOffLines = (co.CheckOffXtraLines ?? 0);
|
|
||||||
if (xtraCheckOffLines < 0)
|
|
||||||
{
|
|
||||||
xtraCheckOffLines = -xtraCheckOffLines;
|
|
||||||
xtraCheckOffLines *= SixLinesPerInch;
|
|
||||||
PartsRight.Add(new vlnMacro(xloc_co, yForCheckoff/* + xtraCheckOffLines */, co.Macro));
|
|
||||||
yoff += xtraCheckOffLines;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
xtraCheckOffLines *= SixLinesPerInch;
|
|
||||||
xtraCheckOffLines -= ((xtraCheckOffLines>0)? SixLinesPerInch:0);
|
xtraCheckOffLines -= ((xtraCheckOffLines>0)? SixLinesPerInch:0);
|
||||||
PartsRight.Add(new vlnMacro(xloc_co, yForCheckoff + xtraCheckOffLines, co.Macro));
|
PartsRight.Add(new vlnMacro(xloc_co, yForCheckoff + xtraCheckOffLines, co.Macro));
|
||||||
yoff += (xtraCheckOffLines != 0) ? xtraCheckOffLines + SixLinesPerInch : 0;
|
yoff += (xtraCheckOffLines > 0) ? xtraCheckOffLines + SixLinesPerInch : 0;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
float yOffRight = yoff;
|
float yOffRight = yoff;
|
||||||
@ -3204,7 +3186,7 @@ namespace Volian.Print.Library
|
|||||||
int everyNLines = MyItemInfo.FormatStepData == null ? 1 : MyItemInfo.FormatStepData.StepLayoutData.EveryNLines ?? 1;
|
int everyNLines = MyItemInfo.FormatStepData == null ? 1 : MyItemInfo.FormatStepData.StepLayoutData.EveryNLines ?? 1;
|
||||||
if (everyNLines == -99) return 0;
|
if (everyNLines == -99) return 0;
|
||||||
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvertAlarm ||
|
if (MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvertAlarm ||
|
||||||
(MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvert && (MyItemInfo.MyTab!= null && MyItemInfo.MyTab.CleanText != string.Empty)))
|
MyItemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SpecialCaseCalvert)
|
||||||
{
|
{
|
||||||
if ((MyItemInfo.IsCaution || MyItemInfo.IsNote || MyItemInfo.MyParent.IsCaution || MyItemInfo.MyParent.IsNote) && !MyItemInfo.FormatStepData.SpaceIn
|
if ((MyItemInfo.IsCaution || MyItemInfo.IsNote || MyItemInfo.MyParent.IsCaution || MyItemInfo.MyParent.IsNote) && !MyItemInfo.FormatStepData.SpaceIn
|
||||||
&& (MyItemInfo.Steps == null || MyItemInfo.Steps.Count == 0)
|
&& (MyItemInfo.Steps == null || MyItemInfo.Steps.Count == 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user