mirror of https://github.com/odrling/Aegisub
Fixed critical ass_time bug
Originally committed to SVN as r111.
This commit is contained in:
parent
53d40024df
commit
6f24fdae42
|
@ -178,6 +178,7 @@ wxString AssTime::GetASSFormated () {
|
||||||
_ms -= 1000;
|
_ms -= 1000;
|
||||||
s++;
|
s++;
|
||||||
}
|
}
|
||||||
|
ms = _ms;
|
||||||
|
|
||||||
if (UseMSPrecision) return wxString::Format(_T("%01i:%02i:%02i.%03i"),h,m,s,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);
|
else return wxString::Format(_T("%01i:%02i:%02i.%02i"),h,m,s,ms/10);
|
||||||
|
@ -222,6 +223,7 @@ wxString AssTime::GetSRTFormated () {
|
||||||
_ms -= 1000;
|
_ms -= 1000;
|
||||||
s++;
|
s++;
|
||||||
}
|
}
|
||||||
|
ms = _ms;
|
||||||
|
|
||||||
wxString result = wxString::Format(_T("%02i:%02i:%02i,%03i"),h,m,s,ms);
|
wxString result = wxString::Format(_T("%02i:%02i:%02i,%03i"),h,m,s,ms);
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in New Issue