mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-16 08:34:10 +02:00
Bug1735 addendum: fix oddities pasting left of Note track offset...
... See comment http://bugzilla.audacityteam.org/show_bug.cgi?id=1735#c3
This commit is contained in:
parent
761bd6bf83
commit
cee28ab535
@ -565,6 +565,14 @@ void NoteTrack::Paste(double t, const Track *src)
|
|||||||
// THROW_INCONSISTENCY_EXCEPTION; // ?
|
// THROW_INCONSISTENCY_EXCEPTION; // ?
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
auto myOffset = this->GetOffset();
|
||||||
|
if (t < myOffset) {
|
||||||
|
// workaround strange behavior described at
|
||||||
|
// http://bugzilla.audacityteam.org/show_bug.cgi?id=1735#c3
|
||||||
|
SetOffset(t);
|
||||||
|
InsertSilence(t, myOffset - t);
|
||||||
|
}
|
||||||
|
|
||||||
NoteTrack* other = (NoteTrack*)src;
|
NoteTrack* other = (NoteTrack*)src;
|
||||||
|
|
||||||
double delta = 0.0;
|
double delta = 0.0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user