Fix crash in Remove text for HI" - thx indeed-a-genius :)

Fix #3152
This commit is contained in:
Nikolaj Olsson 2018-10-27 07:42:39 +02:00
parent dce9899b2c
commit 8025c48205
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@
* Fix auto-select text in undocked mode - thx Ingo
* Fix Toggle dialog dashes with ASS tags - thx OmrSi
* Fix "Set end, next start + go to next" w org sub - thx OmrSi
* Fix crash in Remove text for HI" - thx indeed-a-genius
3.5.7 (9th August 2018)
* NEW:

View File

@ -168,7 +168,7 @@ namespace Nikse.SubtitleEdit.Core.Forms
else
newText += line;
}
else if (count == 1 && newText.Length > 1 && indexOfColon > 15 && line.Substring(0, indexOfColon).Contains(' ') &&
else if (count == 1 && newTextNoHtml.Length > 1 && indexOfColon > 15 && line.Substring(0, indexOfColon).Contains(' ') &&
!".?!".Contains(newTextNoHtml[newTextNoHtml.Length - 1]) && newText.LineEndsWithHtmlTag(true) &&
line != line.ToUpper())
{