implemented the UsesSTExtraRealValue flag

B2012-188 - added logic for the PREDELIMEOPNUM pagelist token.
This commit is contained in:
2012-10-05 14:59:20 +00:00
parent d7d1b7194d
commit 3534b9bca0
2 changed files with 12 additions and 1 deletions

View File

@@ -962,7 +962,8 @@ namespace Volian.Print.Library
float addExtraSpace = (MyItemInfo.FormatStepData == null) ? 0 : MyItemInfo.FormatStepData.StepLayoutData.STExtraSpace ?? 0;
// If a high level step, the 16bit code uses the value of the extra space
// from the high level step format regardless of what type of high level step it is:
if (MyItemInfo.IsHigh)
// Added check for UseSTExtraRealValue, if set, we want to use what is set for the specific step type
if (!MyItemInfo.ActiveFormat.MyStepSectionLayoutData.UseSTExtraRealValue && MyItemInfo.IsHigh)
addExtraSpace = MyItemInfo.ActiveFormat.PlantFormat.FormatData.StepDataList[2].StepLayoutData.STExtraSpace ?? 0;
if (addExtraSpace > 0) this.PartsAbove.Add(new vlnText(cb, this, " ", " ", 0, yoff, MyItemInfo.FormatStepData.Font));
yoff += addExtraSpace;