mirror of https://github.com/odrling/Aegisub
Fix use of an uninitialized value in the time edit control when the frame number can't be parsed
Originally committed to SVN as r6131.
This commit is contained in:
parent
2fdbd86a7f
commit
2c324de29c
|
@ -115,9 +115,9 @@ void TimeEdit::SetByFrame(bool enableByFrame) {
|
|||
void TimeEdit::OnModified(wxCommandEvent &event) {
|
||||
event.Skip();
|
||||
if (byFrame) {
|
||||
long temp;
|
||||
long temp = 0;
|
||||
GetValue().ToLong(&temp);
|
||||
SetTime(c->videoController->TimeAtFrame(temp, isEnd ? agi::vfr::END : agi::vfr::START));
|
||||
time = c->videoController->TimeAtFrame(temp, isEnd ? agi::vfr::END : agi::vfr::START);
|
||||
}
|
||||
else if (insert)
|
||||
time.ParseASS(GetValue());
|
||||
|
|
Loading…
Reference in New Issue