Originally committed to SVN as r130.

This commit is contained in:
Rodrigo Braz Monteiro 2006-02-23 21:36:14 +00:00
parent 4d0cf4e6a2
commit 4d498ea184

View file

@ -1084,7 +1084,7 @@ void SubtitlesGrid::SetSubsToVideo(bool start) {
if (!VFR_Output.loaded) return; if (!VFR_Output.loaded) return;
// Get new time // Get new time
int ms = VFR_Output.CorrectTimeAtFrame(video->frame_n,true); int ms = VFR_Output.CorrectTimeAtFrame(video->frame_n,start);
// Update selection // Update selection
wxArrayInt sel = GetSelection(); wxArrayInt sel = GetSelection();
@ -1116,7 +1116,7 @@ void SubtitlesGrid::SetVideoToSubs(bool start) {
if (sel.Count() == 0) return; if (sel.Count() == 0) return;
AssDialogue *cur = GetDialogue(sel[0]); AssDialogue *cur = GetDialogue(sel[0]);
if (cur) { if (cur) {
if (start) video->JumpToFrame(VFR_Output.CorrectFrameAtTime(cur->Start.GetMS(),true)); if (start) video->JumpToFrame(VFR_Output.CorrectFrameAtTime(cur->Start.GetMS(),start));
else video->JumpToFrame(VFR_Output.CorrectFrameAtTime(cur->End.GetMS(),false)); else video->JumpToFrame(VFR_Output.CorrectFrameAtTime(cur->End.GetMS(),false));
} }
} }