From faceafe75c2331e4f531e1abf3bee8b20642955d Mon Sep 17 00:00:00 2001 From: "ivandroflygit config --global user.email ivandrofly@gmail.comgit config --global user.name ivandrofly" Date: Sat, 26 Dec 2015 23:47:06 +0000 Subject: [PATCH] Use already defined const for 'BaseUnit' --- libse/Subtitle.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libse/Subtitle.cs b/libse/Subtitle.cs index 8a9821d51..39c2d312b 100644 --- a/libse/Subtitle.cs +++ b/libse/Subtitle.cs @@ -429,7 +429,7 @@ namespace Nikse.SubtitleEdit.Core /// public int GetIndex(double seconds) { - var totalMilliseconds = seconds * 1000.0; + var totalMilliseconds = seconds * TimeCode.BaseUnit; for (int i = 0; i < Paragraphs.Count; i++) { var p = Paragraphs[i];