Logic was added to the indent code to keep the indent code from going into an infinite loop
This commit is contained in:
parent
e2797d2e2d
commit
9ca4eda235
@ -479,7 +479,13 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
Point indent = GetPositionFromCharIndex(indchar);
|
||||
SelectionHangingIndent = indent.X;
|
||||
// RHM 02/20/2013
|
||||
// The following line attempts to remove the indent character for display purposes.
|
||||
// However, if the indent is followed immediately by an RO or Transition the
|
||||
// RichTextBox will not allow the character to be removed this way and the RichTextBox
|
||||
// will beep. So, to keep from going in an infintie loop, the value of indchar is incremented.
|
||||
SelectedRtf = SelectedRtf.Replace(@"\'05","");
|
||||
indchar ++;// Don't so the same one twice.
|
||||
}
|
||||
}
|
||||
OrigRTF = Rtf;
|
||||
|
Loading…
x
Reference in New Issue
Block a user