mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-02 16:49:41 +02:00
Bug 390 (P4) - fix for detaching at silences when silence is a clip creates spurious single-sample clip
This commit is contained in:
parent
6e6367e958
commit
927c34e5e2
@ -1137,9 +1137,9 @@ bool WaveTrack::Disjoin(double t0, double t1)
|
||||
|
||||
//consider the end case, where selection ends in zeroes
|
||||
if( curSamplePos == end - 1 && buffer[ i ] == 0.0 )
|
||||
seqEnd = end - 1;
|
||||
seqEnd = end;
|
||||
else
|
||||
seqEnd = curSamplePos - 1;
|
||||
seqEnd = curSamplePos;
|
||||
if( seqEnd - seqStart + 1 > minSamples )
|
||||
{
|
||||
Region *region = new Region;
|
||||
|
Loading…
x
Reference in New Issue
Block a user