mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 03:33:18 +01:00
Ignore "+" before offset in cmd line convert
This commit is contained in:
parent
960915c14b
commit
ef08f30d0f
@ -840,7 +840,7 @@ namespace Nikse.SubtitleEdit.Logic.CommandLineConvert
|
||||
/// <param name="commandLineArguments">All unresolved arguments from the command line</param>
|
||||
private static TimeSpan GetOffset(IList<string> commandLineArguments)
|
||||
{
|
||||
var offset = GetArgument(commandLineArguments, "offset:", "0");
|
||||
var offset = GetArgument(commandLineArguments, "offset:", "0").TrimStart('+');
|
||||
if (int.TryParse(offset, NumberStyles.AllowLeadingSign, CultureInfo.CurrentCulture, out var number) || int.TryParse(offset, NumberStyles.AllowLeadingSign, CultureInfo.InvariantCulture, out number))
|
||||
{
|
||||
return TimeSpan.FromMilliseconds(number);
|
||||
|
Loading…
Reference in New Issue
Block a user