mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-15 15:49:36 +02:00
Bug1719: crash left-stretching one Midi track synced to another...
... Fixed by making the cutting of a Note track always have 0 offset; as is also the case for cuttings of other types of tracks.
This commit is contained in:
parent
ab9bb2ae29
commit
76a9962a5e
@ -470,7 +470,7 @@ Track::Holder NoteTrack::Cut(double t0, double t1)
|
|||||||
auto &seq = GetSeq();
|
auto &seq = GetSeq();
|
||||||
seq.convert_to_seconds();
|
seq.convert_to_seconds();
|
||||||
newTrack->mSeq.reset(seq.cut(t0 - GetOffset(), len, false));
|
newTrack->mSeq.reset(seq.cut(t0 - GetOffset(), len, false));
|
||||||
newTrack->SetOffset(GetOffset());
|
newTrack->SetOffset(0);
|
||||||
|
|
||||||
// Not needed
|
// Not needed
|
||||||
// Alg_seq::cut seems to handle this
|
// Alg_seq::cut seems to handle this
|
||||||
|
Loading…
x
Reference in New Issue
Block a user