Minor fix to RTB and logic to set font for Debug
Comment-out debug code
This commit is contained in:
@@ -76,7 +76,13 @@ namespace Volian.Controls.Library
|
||||
//_InitializingRTB = true;
|
||||
DisplayText vlntxt = new DisplayText(_MyItemInfo, EpMode, VwMode);
|
||||
_origDisplayText = vlntxt;
|
||||
#if(DEBUG)
|
||||
// Use Times New Roman for Debugging
|
||||
Font = new Font("Times New Roman", 14, FontStyle.Regular);
|
||||
//Font = _origDisplayText.TextFont.WindowsFont;
|
||||
#else
|
||||
Font = _origDisplayText.TextFont.WindowsFont;
|
||||
#endif
|
||||
|
||||
Text = ""; // Initialize text before add text
|
||||
//if (_MyStepItem.MyID == 168)
|
||||
@@ -432,7 +438,7 @@ namespace Volian.Controls.Library
|
||||
else
|
||||
{
|
||||
AddLinkLocation(myDisplayLinkElement.Text, myDisplayLinkElement.Link);
|
||||
_SelectedRtfSB.Append(@"\f0\fs20 ");
|
||||
_SelectedRtfSB.Append(@"\f0 ");
|
||||
_SelectedRtfSB.Append(myDisplayLinkElement.Text);
|
||||
_SelectedRtfSB.Append(@"\v ");
|
||||
_SelectedRtfSB.Append(myDisplayLinkElement.Link);
|
||||
|
Reference in New Issue
Block a user