diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs index c8fce31b..13604506 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ItemExt.cs @@ -2438,13 +2438,13 @@ namespace VEPROMS.CSLA.Library ((prevTbFormat != tbformat && (NextItem.MyContent.Type == (int)(MyContent.Type % 10000)))))) { tbformat = tbformat + ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.IdentB; - _MyTab.RemovedStyleUnderline = true; - TabToIdentBAdjustFont(); + if (TabToIdentBAdjustFont()) + _MyTab.RemovedStyleUnderline = true; } return tbformat; } - private void TabToIdentBAdjustFont() + private bool TabToIdentBAdjustFont() { if ((FormatStepData.TabData.Font.Style & E_Style.Underline) > 0) { @@ -2452,7 +2452,9 @@ namespace VEPROMS.CSLA.Library if ((FormatStepData.TabData.Font.Style & E_Style.Bold) > 0) style |= FontStyle.Bold; if ((FormatStepData.TabData.Font.Style & E_Style.Italics) > 0) style |= FontStyle.Italic; _MyTab.MyFont.WindowsFont = new Font(FormatStepData.TabData.Font.WindowsFont.FontFamily, FormatStepData.TabData.Font.WindowsFont.Size, style); + return true; } + return false; } private string AlphabeticalNumbering(int number) {