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:
Thomas Goyne 2011-12-22 21:30:14 +00:00
parent 2fdbd86a7f
commit 2c324de29c
1 changed files with 2 additions and 2 deletions

View File

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