Fixed #3 - no longer removes last letter

This commit is contained in:
niksedk 2014-02-05 18:18:54 +01:00
parent 3b8d9aecc9
commit 1eae4682e6

View File

@ -2428,7 +2428,7 @@ namespace Nikse.SubtitleEdit.Logic
else if (firstIndex == 0)
text = text.Remove(0, 4);
else
text = text.Substring(0, firstIndex - 1) + text.Substring(firstIndex + endTag.Length);
text = text.Substring(0, firstIndex) + text.Substring(firstIndex + endTag.Length);
}
if (italicBeginTagCount == 2 && italicEndTagCount == 1)