Minor fix to RTB and logic to set font for Debug

Comment-out debug code
This commit is contained in:
Rich
2009-03-28 22:32:25 +00:00
parent 0288bddba7
commit c56e3f07ef
2 changed files with 9 additions and 3 deletions

View File

@@ -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);