diff --git a/PROMS/Volian.Controls.Library/DisplayText.cs b/PROMS/Volian.Controls.Library/DisplayText.cs index cce1ea5c..62b12a62 100644 --- a/PROMS/Volian.Controls.Library/DisplayText.cs +++ b/PROMS/Volian.Controls.Library/DisplayText.cs @@ -1736,7 +1736,8 @@ namespace Volian.Controls.Library with = with.Replace(@"\ulnone ", ""); } text = text.Substring(0, offset + foundMatch.MyMatch.Index) + with + text.Substring(offset + foundMatch.MyMatch.Index + foundMatch.MyMatch.Length); - offset += foundMatch.MyWord.ReplaceWith.Length - foundMatch.MyMatch.Length; + //offset += foundMatch.MyWord.ReplaceWith.Length - foundMatch.MyMatch.Length; + offset += with.Length - foundMatch.MyMatch.Length; } } }