This commit is contained in:
Kathy Ruffing 2012-09-18 13:31:00 +00:00
parent b0df73b670
commit 2d008eb046

View File

@ -998,12 +998,17 @@ namespace Volian.Controls.Library
{ {
// See comments in AddRtf(string str) to explain the font style setting // See comments in AddRtf(string str) to explain the font style setting
RTBAPI.E_FontStyle fs = RTBAPI.GetFontStyle(this); RTBAPI.E_FontStyle fs = RTBAPI.GetFontStyle(this);
Font locfont = this.Font;
int position = SelectionStart; int position = SelectionStart;
SelectedRtf = RtfPrefixForSymbols + str + @"}"; SelectedRtf = RtfPrefixForSymbols + str + @"}";
Select(position, 1); Select(position, 1);
RTBAPI.SetFontStyle(this, fs); RTBAPI.SetFontStyle(this, fs);
Select(position + 1, 0); 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) private string GetAddSymbolText(string symtxt)
{ {