B2022-146: Beaver Valley - Left justify Note and Caution text that has sub-steps
This commit is contained in:
@@ -1057,7 +1057,9 @@ namespace Volian.Print.Library
|
||||
// multiplier accounts for both.
|
||||
// B2021-091 added a null reference check - MyItemInfo was a section and didn't have FormatStepData
|
||||
// F2021-042: Added FormatStepData.AlwaysCenter for BNPP1 - Critical Step text always must be centered
|
||||
if (!MyItemInfo.IsStepSection && MyItemInfo.FormatStepData != null && MyItemInfo.FormatStepData.CenterOneLineOnly && ((MyItemInfo.MyPrevious == null && MyItemInfo.NextItem == null)
|
||||
// B2022-146: Left Justify Note & Caution text that has sub-steps (for Beaver Valley)
|
||||
bool cnWithChildren = !MyItemInfo.IsStepSection && MyItemInfo.FormatStepData != null && MyItemInfo.FormatStepData.CenterOnlyIfNoSubs && MyItemInfo.HasChildren;
|
||||
if (!MyItemInfo.IsStepSection && MyItemInfo.FormatStepData != null && MyItemInfo.FormatStepData.CenterOneLineOnly && !cnWithChildren && ((MyItemInfo.MyPrevious == null && MyItemInfo.NextItem == null)
|
||||
|| MyItemInfo.FormatStepData.SeparateBox || doAlign || MyItemInfo.FormatStepData.AlwaysCenter) && Height < (1.2F * IParagraph.Leading))
|
||||
IParagraph.Alignment = Element.ALIGN_CENTER;
|
||||
// if this step is centered, but not part of the checklist or valvelist format, use itextsharp to center it.
|
||||
|
Reference in New Issue
Block a user