From 6f24fdae424ca7181a494aef66175da455b33007 Mon Sep 17 00:00:00 2001 From: Rodrigo Braz Monteiro Date: Wed, 22 Feb 2006 07:36:38 +0000 Subject: [PATCH] Fixed critical ass_time bug Originally committed to SVN as r111. --- core/ass_time.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/ass_time.cpp b/core/ass_time.cpp index 96114bf24..af866cd99 100644 --- a/core/ass_time.cpp +++ b/core/ass_time.cpp @@ -178,6 +178,7 @@ wxString AssTime::GetASSFormated () { _ms -= 1000; s++; } + ms = _ms; if (UseMSPrecision) return wxString::Format(_T("%01i:%02i:%02i.%03i"),h,m,s,ms); else return wxString::Format(_T("%01i:%02i:%02i.%02i"),h,m,s,ms/10); @@ -222,6 +223,7 @@ wxString AssTime::GetSRTFormated () { _ms -= 1000; s++; } + ms = _ms; wxString result = wxString::Format(_T("%02i:%02i:%02i,%03i"),h,m,s,ms); return result;