B2022-002: BNPP1new - Step and section text printing into the INITIAL column

This commit is contained in:
2022-01-12 15:29:45 +00:00
parent 0ddd9b92a8
commit 43a1df66d0
2 changed files with 18 additions and 0 deletions

View File

@@ -6507,6 +6507,15 @@ namespace Volian.Print.Library
Width = Width + (float)formatInfo.PlantFormat.FormatData.SectData.SectionHeader.Pos;
else if (itemInfo.MyDocStyle.AlignHLSTabWithSect)
Width = Width - (float)formatInfo.PlantFormat.FormatData.SectData.SectionHeader.Pos;
// B2022-002: Section text is printing into the INITIAL column (BNPP1new). If this flag is set adjust the width of the
// section text to that of the first hls (child) text and its tab. This is to prevent the very long section titles (that should have
// been steps) from extending into the INITIAL (checkoff) column.
if (formatInfo.PlantFormat.FormatData.SectData.AdjWidthForCheckOff && MyParent != null && MyParent.MyItemInfo.IsSection && ChkOff && CheckOffWidth != 0 && itemInfo.ItemID == itemInfo.FirstSibling.ItemID)
{
SectionInfo si = MyParent.MyItemInfo.GetSectionInfo();
if (si.HasInitials) MyParent.Width = Width + ((myTab == null) ? 0 : myTab.Width);
}
}
else if (bxIndx != null)
{