This commit is contained in:
parent
b0df73b670
commit
2d008eb046
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user