1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-12-15 09:01:12 +01:00

Should fix the invalid initial duration for generator effects

This commit is contained in:
Leland Lucius
2015-04-17 22:52:34 -05:00
parent 80c3705e7c
commit 835000d916
5 changed files with 5 additions and 12 deletions

View File

@@ -961,9 +961,7 @@ bool Effect::DoEffect(wxWindow *parent,
SelectedRegion *selectedRegion,
bool shouldPrompt /* = true */)
{
double t0 = selectedRegion->t0();
double t1 = selectedRegion->t1();
wxASSERT(t0 <= t1);
wxASSERT(selectedRegion->duration() >= 0.0);
if (mOutputTracks)
{
@@ -975,8 +973,9 @@ bool Effect::DoEffect(wxWindow *parent,
mProjectRate = projectRate;
mParent = parent;
mTracks = list;
mT0 = t0;
mT1 = t1;
mT0 = selectedRegion->t0();
mT1 = selectedRegion->t1();
mDuration = GetDuration();
#ifdef EXPERIMENTAL_SPECTRAL_EDITING
mF0 = selectedRegion->f0();
mF1 = selectedRegion->f1();