diff --git a/PROMS/Volian.Print.Library/vlnTab.cs b/PROMS/Volian.Print.Library/vlnTab.cs index 8390bced..9b2c02ce 100644 --- a/PROMS/Volian.Print.Library/vlnTab.cs +++ b/PROMS/Volian.Print.Library/vlnTab.cs @@ -193,8 +193,11 @@ namespace Volian.Print.Library if (removedUnderline) { int sep = origTab.IndexOfAny(". ".ToCharArray()); + string prefix = ((vFont.Style & E_Style.Bold) > 0) ? @"\b\ul " : @"\ul "; + string suffix = ((vFont.Style & E_Style.Bold) > 0) ? @"\b0\ulnone " : @"\ulnone "; //origTab = @"\ul " + origTab.Substring(0, sep-1) + @"\ulnone" + origTab.Substring(sep-1); - origTab = @"\ul " + origTab.Substring(0, sep) + @"\ulnone" + origTab.Substring(sep); + //origTab = @"\ul " + origTab.Substring(0, sep) + @"\ulnone" + origTab.Substring(sep); + origTab = prefix + origTab.Substring(0, sep) + suffix + origTab.Substring(sep); } UnderlineTerminateList utl = myparent.MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.UnderlineTerminateList; @@ -223,7 +226,10 @@ namespace Volian.Print.Library if ((vFont.Style & E_Style.Italics) > 0) style |= FontStyle.Italic; vFont.WindowsFont = new System.Drawing.Font(vFont.Family, (float)vFont.Size, style); int indxC = origTab.IndexOf(ut.Text); - origTab = @"\ul " + origTab.Substring(0, indxC) + @"\ulnone " + origTab.Substring(indxC); + string prefix = ((vFont.Style & E_Style.Bold) > 0) ? @"\b\ul " : @"\ul "; + string suffix = ((vFont.Style & E_Style.Bold) > 0) ? @"\b0\ulnone " : @"\ulnone "; + //origTab = @"\ul " + origTab.Substring(0, indxC) + @"\ulnone " + origTab.Substring(indxC); + origTab = prefix + origTab.Substring(0, indxC) + suffix + origTab.Substring(indxC); break; } }