From da2c5ede68b6a78e1dc399b6163bf4520c64e432 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 7 Oct 2021 19:43:10 +0000 Subject: [PATCH] F2021-057 turned off the bolding of the sub-section tab for Barakah Single Column Format --- PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs index d74d00ab..cbde52fb 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs @@ -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);