Fix crash in "Remove text for HI" - thx darnn :)

Fix #7818
This commit is contained in:
Nikolaj Olsson 2024-01-06 17:29:34 +01:00
parent 46b431d478
commit 3a81f5d2ed
2 changed files with 4 additions and 1 deletions

View File

@ -16,6 +16,7 @@
* Fix for "outputfilename" in cmd line with SUP source - thx sapphire-bt
* Do not download PFW "preprocessor_config.json" if not exists - thx Purfview
* Change "Save as" shortcut to "Control+Shift+S" to work with Polish - thx Krystian
* Fix crash in "Remove text for HI" - thx darnn
4.0.3 (23rd December 2023)

View File

@ -880,7 +880,9 @@ namespace Nikse.SubtitleEdit.Core.Forms
var text = RemoveColon(input);
var pre = " >-\"'`´♪¿¡.…—";
var post = " -\"'`´♪.!?:…—";
if (Settings.RemoveTextBetweenCustomTags)
if (Settings.RemoveTextBetweenCustomTags &&
!string.IsNullOrEmpty(Settings.CustomStart) &&
!string.IsNullOrEmpty(Settings.CustomEnd))
{
pre = pre.Replace(Settings.CustomStart, string.Empty);
post = post.Replace(Settings.CustomEnd, string.Empty);