mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Fixed bug in batch-convert - offset did not work right (thx Carl)
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@420 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
a2ea09df2f
commit
ba3701056d
@ -396,7 +396,11 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
{
|
||||
try
|
||||
{
|
||||
sub.AddTimeToAllParagraphs(new TimeSpan(int.Parse(parts[1]), int.Parse(parts[2]), int.Parse(parts[3]), int.Parse(parts[4])));
|
||||
TimeSpan ts = new TimeSpan(0, int.Parse(parts[1].TrimStart('-')), int.Parse(parts[2]), int.Parse(parts[3]), int.Parse(parts[4]));
|
||||
if (parts[1].StartsWith("-"))
|
||||
sub.AddTimeToAllParagraphs(ts.Negate());
|
||||
else
|
||||
sub.AddTimeToAllParagraphs(ts);
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user