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
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue