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:
niksedk 2011-04-28 07:18:08 +00:00
parent 54338f3e50
commit 190c6fadbc

View File

@ -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);
}