mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 14:32:35 +01:00
Fix a bug in an xml subtitle format
git-svn-id: https://subtitleedit.googlecode.com/svn/trunk@415 99eadd0c-20b8-1223-b5c4-2a2b2df33de2
This commit is contained in:
parent
54338f3e50
commit
190c6fadbc
@ -98,15 +98,14 @@ namespace Nikse.SubtitleEdit.Logic.SubtitleFormats
|
||||
string end = node.Attributes["dur"].InnerText;
|
||||
string text = node.InnerText;
|
||||
|
||||
|
||||
subtitle.Paragraphs.Add(new Paragraph(text, Convert.ToDouble(start), Convert.ToDouble(start) + Convert.ToDouble(end)));
|
||||
subtitle.Paragraphs.Add(new Paragraph(text, Convert.ToDouble(start)*1000.0, 1000.0 * (Convert.ToDouble(start) + Convert.ToDouble(end))));
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
System.Diagnostics.Debug.WriteLine(ex.Message);
|
||||
_errorCount++;
|
||||
}
|
||||
}
|
||||
}
|
||||
subtitle.Renumber(1);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user