F2021-057 turned off the bolding of the sub-section tab for Barakah Single Column Format

This commit is contained in:
John Jenko 2021-10-07 19:43:10 +00:00
parent 78bfffcbd7
commit da2c5ede68

View File

@ -7673,7 +7673,19 @@ namespace VEPROMS.CSLA.Library
//private int? _TemplateColumnMode
public override void SetupTags()
{
MyTab = new Tab(ActiveFormat.PlantFormat.FormatData.SectData.SectionNumber.Font);
VE_Font font;
// F2021-057 used in BNPP1 format if we are only bolding the top section title (header) and this is not the top section title (1st level),
// then turn off the bolding of the section tab as well
if (ActiveFormat.PlantFormat.FormatData.SectData.SectionHeader.OnlyBoldTopSect && MyParent.IsSection)
{
VE_Font hdrFont = ActiveFormat.PlantFormat.FormatData.SectData.SectionNumber.Font;
font = new VE_Font(hdrFont.Family, (int)hdrFont.Size, E_Style.None, (float)hdrFont.CPI);
}
else
font = ActiveFormat.PlantFormat.FormatData.SectData.SectionNumber.Font;
//MyTab = new Tab(ActiveFormat.PlantFormat.FormatData.SectData.SectionNumber.Font);
MyTab = new Tab(font);
string sectTab = GetSectionTab(false);
_MyTab.Text = sectTab;
_MyTab.CleanText = sectTab.PadRight(20);