Fixed replace words underline logic

This commit is contained in:
John Jenko 2014-08-25 14:49:29 +00:00
parent 580ca5f63c
commit 003ca74e2c

View File

@ -1923,7 +1923,7 @@ namespace Volian.Controls.Library
with = with.Replace(@"\b0 ","");
}
int ndxULine = preceedingText.LastIndexOf(@"\ul");
if (ndxULine > -1 && preceedingText[ndxULine + 2] != 'n' && with.Contains(@"\ul "))
if (ndxULine > -1 && preceedingText[ndxULine + 3] != 'n' && with.Contains(@"\ul "))
{
with = with.Replace(@"\ul ", "");
with = with.Replace(@"\ulnone ", "");