mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2025-01-31 21:11:39 +01:00
Fixed issue with empty time code in format "Timed Text draft 2006-10" - thx Georg-J :)
Fix #2329
This commit is contained in:
parent
d61f7f29d6
commit
102bf79118
@ -233,7 +233,7 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
|
||||
string text = pText.ToString();
|
||||
text = text.Replace(Environment.NewLine + "</i>", "</i>" + Environment.NewLine);
|
||||
text = text.Replace("<i></i>", string.Empty).Trim();
|
||||
if (end != null)
|
||||
if (!string.IsNullOrEmpty(end))
|
||||
{
|
||||
if (end.Length != 11 || end.Substring(8, 1) != ":" || start == null || start.Length != 11 || start.Substring(8, 1) != ":")
|
||||
{
|
||||
@ -270,7 +270,7 @@ namespace Nikse.SubtitleEdit.Core.SubtitleFormats
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (dur != null)
|
||||
else if (!string.IsNullOrEmpty(dur))
|
||||
{
|
||||
if (dur.Length != 11 || dur.Substring(8, 1) != ":" || start == null || start.Length != 11 || start.Substring(8, 1) != ":")
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user