B2020-100 Wolf Creek (Carolee) reported issues with adding a hyphen in the middle of Table text that was bolded and underlined.
This commit is contained in:
@@ -319,12 +319,14 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_RtfPrefix == null)
|
||||
{
|
||||
//B2020-100 RHM Use SelectionFont rather than the font from the format file.
|
||||
//if (_RtfPrefix == null)
|
||||
//{
|
||||
StringBuilder selectedRtfSB = new StringBuilder();
|
||||
AddFontTable(selectedRtfSB, FormatFont, FontIsFixed(FormatFont));
|
||||
//AddFontTable(selectedRtfSB, FormatFont, FontIsFixed(FormatFont));
|
||||
AddFontTable(selectedRtfSB, SelectionFont, FontIsFixed(FormatFont));
|
||||
_RtfPrefix = selectedRtfSB.ToString();
|
||||
}
|
||||
//}
|
||||
return _RtfPrefix + @"\f1\fs" + FormatFont.SizeInPoints * 2 + " ";
|
||||
}
|
||||
}
|
||||
@@ -1317,10 +1319,12 @@ namespace Volian.Controls.Library
|
||||
int position = SelectionStart;
|
||||
SelectedRtf = RtfPrefixForSymbols + str + @"}";
|
||||
Select(position, 1);
|
||||
RTBAPI.SetFontStyle(this, fs);
|
||||
Select(position + 1, 0);
|
||||
if (FieldToEdit == E_FieldToEdit.StepText)
|
||||
{
|
||||
SelectionFont = MyItemInfo.GetItemFont().WindowsFont;
|
||||
RTBAPI.SetFontStyle(this, fs);// B2020-100 Keep the font style
|
||||
}
|
||||
else
|
||||
// if doing properties for folder, docversion, proc or sect, don't get item's font.
|
||||
SelectionFont = locfont;
|
||||
|
Reference in New Issue
Block a user