(Probably) fixed some issue with audio clip saving.
Originally committed to SVN as r895.
This commit is contained in:
parent
bd84faa650
commit
21e8d0ce2c
1 changed files with 1 additions and 1 deletions
|
@ -645,7 +645,7 @@ void SubtitlesGrid::OnAudioClip(wxCommandEvent &event) {
|
|||
AssDialogue *cur = GetDialogue(GetFirstSelRow());
|
||||
|
||||
__int64 num_samples = provider->GetNumSamples();
|
||||
__int64 start = audioDisplay->GetSampleAtMS(cur->StartMS);
|
||||
__int64 start = audioDisplay->GetSampleAtMS(cur->Start.GetMS());
|
||||
__int64 end = audioDisplay->GetSampleAtMS(cur->End.GetMS());
|
||||
end=(end>=num_samples+1)?num_samples:end;
|
||||
wxString filename = wxFileSelector(_("Save audio clip"),0,0,_T("wav"),0,wxFD_SAVE|wxFD_OVERWRITE_PROMPT,this);
|
||||
|
|
Loading…
Reference in a new issue