From 2d008eb0466d35caab16137d04219bc3f1e44d8b Mon Sep 17 00:00:00 2001 From: Kathy Date: Tue, 18 Sep 2012 13:31:00 +0000 Subject: [PATCH] --- PROMS/Volian.Controls.Library/StepRTB.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/StepRTB.cs b/PROMS/Volian.Controls.Library/StepRTB.cs index 23a73cc6..712e8fdf 100644 --- a/PROMS/Volian.Controls.Library/StepRTB.cs +++ b/PROMS/Volian.Controls.Library/StepRTB.cs @@ -998,12 +998,17 @@ namespace Volian.Controls.Library { // See comments in AddRtf(string str) to explain the font style setting RTBAPI.E_FontStyle fs = RTBAPI.GetFontStyle(this); + Font locfont = this.Font; int position = SelectionStart; SelectedRtf = RtfPrefixForSymbols + str + @"}"; Select(position, 1); RTBAPI.SetFontStyle(this, fs); Select(position + 1, 0); - SelectionFont = MyItemInfo.GetItemFont().WindowsFont; + if (FieldToEdit == E_FieldToEdit.StepText) + SelectionFont = MyItemInfo.GetItemFont().WindowsFont; + else + // if doing properties for folder, docversion, proc or sect, don't get item's font. + SelectionFont = locfont; } private string GetAddSymbolText(string symtxt) {